You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2018/06/12 19:08:47 UTC
[GitHub] matthiasblaesing closed pull request #575: NETBEANS-896 Added
missing nullcheck on JCTree.ErrorneousTree
matthiasblaesing closed pull request #575: NETBEANS-896 Added missing nullcheck on JCTree.ErrorneousTree
URL: https://github.com/apache/incubator-netbeans/pull/575
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
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 aad480c90..73abd2338 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 Void visitNewClass(@NonNull final NewClassTree node, @NonNull final Map<P
@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;
}
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists