You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by ma...@apache.org on 2018/06/12 19:39:32 UTC
[incubator-netbeans] branch release90 updated: NETBEANS-896 Added
missing nullcheck on JCTree.ErrornousTree
This is an automated email from the ASF dual-hosted git repository.
matthiasblaesing pushed a commit to branch release90
in repository https://gitbox.apache.org/repos/asf/incubator-netbeans.git
The following commit(s) were added to refs/heads/release90 by this push:
new fe49b14 NETBEANS-896 Added missing nullcheck on JCTree.ErrornousTree
fe49b14 is described below
commit fe49b140966a8111f9286c213a7465d32f2fdf6e
Author: Laszlo Kishalmi <la...@gmail.com>
AuthorDate: Sun Jun 3 12:51:52 2018 -0700
NETBEANS-896 Added missing nullcheck on JCTree.ErrornousTree
---
.../netbeans/modules/java/source/usages/SourceAnalyzerFactory.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/java.source.base/src/org/netbeans/modules/java/source/usages/SourceAnalyzerFactory.java b/java.source.base/src/org/netbeans/modules/java/source/usages/SourceAnalyzerFactory.java
index aad480c..73abd23 100644
--- a/java.source.base/src/org/netbeans/modules/java/source/usages/SourceAnalyzerFactory.java
+++ b/java.source.base/src/org/netbeans/modules/java/source/usages/SourceAnalyzerFactory.java
@@ -749,8 +749,10 @@ public final class SourceAnalyzerFactory {
@CheckForNull
public Void visitErroneous(@NonNull final ErroneousTree tree, @NonNull final Map<Pair<BinaryName,String>, UsagesData<String>> p) {
List<? extends Tree> trees = tree.getErrorTrees();
- for (Tree t : trees) {
- this.scan(t,p);
+ if (trees != null) {
+ for (Tree t : trees) {
+ this.scan(t,p);
+ }
}
return null;
}
--
To stop receiving notification emails like this one, please contact
matthiasblaesing@apache.org.
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists