This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I pressed Alt-G on a call to WorkingCopy.getCompilationUnit(). The first time, the following exception was thrown. The second time it worked fine. java.lang.NullPointerException at com.sun.tools.javac.code.Types$6.visitErrorType(Types.java:668) at com.sun.tools.javac.code.Types$6.visitErrorType(Types.java:667) at com.sun.tools.javac.code.Type$ErrorType.accept(Type.java:1177) at com.sun.tools.javac.code.Types$DefaultTypeVisitor.visit(Types.java:31 57) at com.sun.tools.javac.code.Types$6.visitType(Types.java:556) at com.sun.tools.javac.code.Types$6.visitType(Types.java:667) at com.sun.tools.javac.code.Type.accept(Type.java:85) at com.sun.tools.javac.code.Types$DefaultTypeVisitor.visit(Types.java:31 57) at com.sun.tools.javac.code.Types$6.visitClassType(Types.java:603) at com.sun.tools.javac.code.Types$6.visitClassType(Types.java:667) at com.sun.tools.javac.code.Type$ClassType.accept(Type.java:553) at com.sun.tools.javac.code.Types$DefaultTypeVisitor.visit(Types.java:31 57) at com.sun.tools.javac.code.Types.isSameType(Types.java:546) at com.sun.tools.javac.code.Types.returnTypeSubstitutable(Types.java:265 1) at com.sun.tools.javac.comp.Check.checkOverride(Check.java:1126) at com.sun.tools.javac.comp.Check.checkOverride(Check.java:1387) at com.sun.tools.javac.comp.Attr.visitMethodDef(Attr.java:554) at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:643) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:370) at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:407) at com.sun.tools.javac.comp.Attr.attribClassBody(Attr.java:2711) at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:2642) at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:2575) at com.sun.tools.javac.main.JavaCompiler.attribute(JavaCompiler.java:104 5) at com.sun.tools.javac.api.JavacTaskImpl$2.process(JavacTaskImpl.java:43 1) at com.sun.tools.javac.api.JavacTaskImpl$Filter.run(JavacTaskImpl.java:5 72) at com.sun.tools.javac.api.JavacTaskImpl.analyze(JavacTaskImpl.java:434) at org.netbeans.modules.java.source.TreeLoader.loadTreeFor(TreeLoader.ja va:70) at com.sun.tools.javac.model.JavacElements.getTreeAndTopLevel(JavacEleme nts.java:612) at com.sun.tools.javac.model.JavacElements.getTreeAndTopLevel(JavacEleme nts.java:638) at com.sun.tools.javac.api.JavacTrees.getPath(JavacTrees.java:153) at com.sun.tools.javac.api.JavacTrees.getPath(JavacTrees.java:145) at org.netbeans.modules.editor.java.GoToSupport$1.run(GoToSupport.java:2 02) at org.netbeans.modules.editor.java.GoToSupport$1.run(GoToSupport.java:1 02) at org.netbeans.api.java.source.JavaSource.runUserActionTask(JavaSource. java:508) at org.netbeans.modules.editor.java.GoToSupport.performGoTo(GoToSupport. java:102) at org.netbeans.modules.editor.java.GoToSupport.goTo(GoToSupport.java:24 6) at org.netbeans.modules.editor.java.JavaKit$JavaGoToDeclarationAction.go toDeclaration(JavaKit.java:586) at org.netbeans.editor.ext.ExtKit$GotoDeclarationAction.actionPerformed( ExtKit.java:528) at org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:263) at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1636) at javax.swing.JComponent.processKeyBinding(JComponent.java:2844) at javax.swing.JComponent.processKeyBindings(JComponent.java:2879) at javax.swing.JComponent.processKeyEvent(JComponent.java:2807) at java.awt.Component.processEvent(Component.java:5815) at java.awt.Container.processEvent(Container.java:2058) at java.awt.Component.dispatchEventImpl(Component.java:4410) at java.awt.Container.dispatchEventImpl(Container.java:2116) at java.awt.Component.dispatchEvent(Component.java:4240) at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.ja va:1848) at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboard FocusManager.java:693) at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeybo ardFocusManager.java:958) at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeybo ardFocusManager.java:830) at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFoc usManager.java:657) at java.awt.Component.dispatchEventImpl(Component.java:4282) at java.awt.Container.dispatchEventImpl(Container.java:2116) at java.awt.Window.dispatchEventImpl(Window.java:2429) at java.awt.Component.dispatchEvent(Component.java:4240) at java.awt.EventQueue.dispatchEvent(EventQueue.java:599) [catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThre ad.java:273) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread. java:183) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre ad.java:173) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160) at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Seems already fixed, at least I am not able to reproduce it. If you are able to reproduce it please reopen this issue and add the file (or project) in which you did go to decl. Thanks.