Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-1341

NullPointerException NBJavadocMemberEnter.java:97

    XMLWordPrintableJSON

    Details

      Description

      It looks like a problem with nbjavac. Stacktrace is here:

      java.lang.NullPointerException
      	at org.netbeans.lib.nbjavac.services.NBJavadocMemberEnter.visitVarDef(NBJavadocMemberEnter.java:97)
      	at com.sun.tools.javac.tree.JCTree$JCVariableDecl.accept(JCTree.java:962)
      	at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:171)
      	at com.sun.tools.javac.comp.Attr.visitVarDef(Attr.java:1171)
      	at com.sun.tools.javac.tree.JCTree$JCVariableDecl.accept(JCTree.java:962)
      	at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:660)
      	at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:736)
      	at com.sun.tools.javac.comp.Attr.attribStats(Attr.java:760)
      	at com.sun.tools.javac.comp.Attr.visitBlock(Attr.java:1337)
      	at org.netbeans.lib.nbjavac.services.NBAttr.visitBlock(NBAttr.java:73)
      	at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:1026)
      	at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:660)
      	at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:736)
      	at com.sun.tools.javac.comp.Attr.visitIf(Attr.java:1814)
      	at com.sun.tools.javac.tree.JCTree$JCIf.accept(JCTree.java:1427)
      	at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:660)
      	at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:736)
      	at com.sun.tools.javac.comp.Attr.attribStats(Attr.java:760)
      	at com.sun.tools.javac.comp.Attr.visitBlock(Attr.java:1337)
      	at org.netbeans.lib.nbjavac.services.NBAttr.visitBlock(NBAttr.java:73)
      	at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:1026)
      	at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:660)
      	at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:736)
      	at com.sun.tools.javac.comp.Attr.attribStatToTree(Attr.java:420)
      	at com.sun.tools.javac.api.JavacTrees.attribStatToTree(JavacTrees.java:1013)
      	at com.sun.tools.javac.api.JavacTrees.getAttrContext(JavacTrees.java:972)
      	at com.sun.tools.javac.api.JavacTrees.getScope(JavacTrees.java:831)
      	at com.sun.tools.javac.api.JavacTrees.getScope(JavacTrees.java:170)
      	at org.netbeans.api.java.source.TreeUtilities.scopeFor(TreeUtilities.java:761)
      	at org.netbeans.modules.editor.java.JavaCodeTemplateProcessor$6.run(JavaCodeTemplateProcessor.java:1080)
      	at org.netbeans.modules.progress.ui.RunOffEDTImpl$1.run(RunOffEDTImpl.java:146)
      	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
      	at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
      	at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
      	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
      Caused: org.openide.util.RequestProcessor$SlowItem: task failed due to
      	at org.openide.util.RequestProcessor.post(RequestProcessor.java:395)
      	at org.netbeans.modules.progress.ui.RunOffEDTImpl.runOffEventDispatchThreadImpl(RunOffEDTImpl.java:140)
      	at org.netbeans.modules.progress.ui.RunOffEDTImpl.runOffEventDispatchThread(RunOffEDTImpl.java:83)
      	at org.netbeans.api.progress.BaseProgressUtils.runOffEventDispatchThread(BaseProgressUtils.java:90)
      	at org.netbeans.api.progress.ProgressUtils.runOffEventDispatchThread(ProgressUtils.java:67)
      	at org.netbeans.modules.editor.java.JavaCodeTemplateProcessor.initParsing(JavaCodeTemplateProcessor.java:1065)
      	at org.netbeans.modules.editor.java.JavaCodeTemplateProcessor.<init>(JavaCodeTemplateProcessor.java:104)
      	at org.netbeans.modules.editor.java.JavaCodeTemplateProcessor.<init>(JavaCodeTemplateProcessor.java:54)
      	at org.netbeans.modules.editor.java.JavaCodeTemplateProcessor$Factory.createProcessor(JavaCodeTemplateProcessor.java:1152)
      	at org.netbeans.lib.editor.codetemplates.CodeTemplateInsertHandler.<init>(CodeTemplateInsertHandler.java:132)
      	at org.netbeans.lib.editor.codetemplates.CodeTemplateManagerOperation.insert(CodeTemplateManagerOperation.java:272)
      	at org.netbeans.lib.editor.codetemplates.api.CodeTemplate.insert(CodeTemplate.java:82)
      	at org.netbeans.modules.editor.java.JavaCompletionItem.process(JavaCompletionItem.java:566)
      	at org.netbeans.modules.editor.java.JavaCompletionItem.defaultAction(JavaCompletionItem.java:286)
      	at org.netbeans.modules.editor.completion.CompletionImpl.dispatchKeyEvent(CompletionImpl.java:785)
      	at org.netbeans.modules.editor.completion.CompletionImpl.keyPressed(CompletionImpl.java:386)
      	at java.desktop/java.awt.AWTEventMulticaster.keyPressed(AWTEventMulticaster.java:258)
      	at java.desktop/java.awt.Component.processKeyEvent(Component.java:6547)
      	at java.desktop/javax.swing.JComponent.processKeyEvent(JComponent.java:2849)
      	at java.desktop/java.awt.Component.processEvent(Component.java:6366)
      	at java.desktop/java.awt.Container.processEvent(Container.java:2261)
      	at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4966)
      	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2319)
      	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4798)
      	at java.desktop/java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1950)
      	at java.desktop/java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:871)
      	at java.desktop/java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1140)
      	at java.desktop/java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:1010)
      	at java.desktop/java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:836)
      	at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4847)
      	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2319)
      	at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2772)
      	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4798)
      	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772)
      	at java.desktop/java.awt.EventQueue.access$600(EventQueue.java:97)
      	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
      	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
      	at java.base/java.security.AccessController.doPrivileged(Native Method)
      	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
      	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:97)
      	at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
      	at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:743)
      	at java.base/java.security.AccessController.doPrivileged(Native Method)
      	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
      	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
      	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)
      	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
      	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
      	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
      	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
      	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rtaneja Reema Taneja
                Reporter:
                Saljack Tomáš Poledný
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 40m
                  2h 40m