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 <laszlo.kisha...@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 matthiasblaes...@apache.org. --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists