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/10/31 04:22:55 UTC

[GitHub] rtaneja1 closed pull request #993: [NETBEANS-1341] NPE NBJavadocMemberEnter

rtaneja1 closed pull request #993: [NETBEANS-1341] NPE NBJavadocMemberEnter
URL: https://github.com/apache/incubator-netbeans/pull/993
 
 
   

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/lib.nbjavac/src/org/netbeans/lib/nbjavac/services/NBJavadocMemberEnter.java b/java/lib.nbjavac/src/org/netbeans/lib/nbjavac/services/NBJavadocMemberEnter.java
index 258059c19d..ddf80c663c 100644
--- a/java/lib.nbjavac/src/org/netbeans/lib/nbjavac/services/NBJavadocMemberEnter.java
+++ b/java/lib.nbjavac/src/org/netbeans/lib/nbjavac/services/NBJavadocMemberEnter.java
@@ -94,7 +94,9 @@ public void visitVarDef(JCVariableDecl tree) {
             //reinstall init:
             tree.init = init;
             if (init != null) {
-                tree.sym.flags_field |= Flags.HASINIT; //XXX: hack
+                if (tree.sym != null) {
+                    tree.sym.flags_field |= Flags.HASINIT; //XXX: hack
+                }
             }
         }
     }


 

----------------------------------------------------------------
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