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.
Build: NetBeans IDE Dev (Build 100503-0bd70e5e336a) VM: Java HotSpot(TM) Client VM, 16.2-b04, Java(TM) SE Runtime Environment, 1.6.0_19-b04 OS: Windows 7 Stacktrace: java.lang.NullPointerException at org.netbeans.modules.cnd.gotodeclaration.matcher.NameMatcherFactory.createNameFilter(NameMatcherFactory.java:184) at org.netbeans.modules.cnd.gotodeclaration.type.CppTypeProvider.computeTypeNames(CppTypeProvider.java:80) at org.netbeans.modules.jumpto.type.GoToTypeAction$Worker.getTypeNames(GoToTypeAction.java:489) at org.netbeans.modules.jumpto.type.GoToTypeAction$Worker.run(GoToTypeAction.java:407) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1415) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1954)
Created attachment 98388 [details] stacktrace
*** Bug 185383 has been marked as a duplicate of this bug. ***
Created attachment 100546 [details] stacktrace Navigate --> Go to Type... start typing and exception occurs. Impossible to use "Go to Type" action.
Judging by the code, the only reason for such an exception can be that one of C/C++ modules did not load. This occurs when something is broken in your NetBeans userdir. Could you try with the clean userdir? Sure, I'll add null check to the code shortly; but frankly, this won't make it work, just exception will gone.
null check pushed to cnd-main: http://hg.netbeans.org/cnd-main/rev/bc803dfcccc9
I'll test it out. > Sure, I'll add null check to the code shortly; but frankly, this won't make it > work, just exception will gone. If the breakage is from the C/C++ module why does the Java "go to" stop working? Couldn't the breakage be enscapulated to C/C++ ?
I agree, this shouldn't happen. And that's the fix I've just pushed to trunk fixes. I meant that for C/C++ it won't work. For Java it will - I checked.
Integrated into 'main-golden', will be available in build *201007070001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/bc803dfcccc9 User: Vladimir Kvashin <vkvashin@netbeans.org> Log: #185382 - NPE at NameMatcherFactory.createNameFilter
looks good now using "Build 100714-5750efc684e1" (main's trunk last night).
*** Bug 189966 has been marked as a duplicate of this bug. ***