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.

Bug 185382 - [69cat] NullPointerException at org.netbeans.modules.cnd.gotodeclaration.matcher.NameMatcherFactory.createNameFilter
Summary: [69cat] NullPointerException at org.netbeans.modules.cnd.gotodeclaration.matc...
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
: 185383 189966 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-05-03 18:14 UTC by misterm
Modified: 2010-09-08 09:57 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 169036


Attachments
stacktrace (6.32 KB, text/plain)
2010-05-03 18:14 UTC, misterm
Details
stacktrace (608 bytes, text/plain)
2010-07-01 14:56 UTC, _ hair
Details

Note You need to log in before you can comment on or make changes to this bug.
Description misterm 2010-05-03 18:14:54 UTC
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)
Comment 1 misterm 2010-05-03 18:14:57 UTC
Created attachment 98388 [details]
stacktrace
Comment 2 Alexander Simon 2010-05-04 05:48:05 UTC
*** Bug 185383 has been marked as a duplicate of this bug. ***
Comment 3 _ hair 2010-07-01 14:56:16 UTC
Created attachment 100546 [details]
stacktrace

Navigate --> Go to Type...
start typing and exception occurs.

Impossible to use "Go to Type" action.
Comment 4 Vladimir Kvashin 2010-07-06 04:52:37 UTC
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.
Comment 5 Vladimir Kvashin 2010-07-06 04:55:35 UTC
null check pushed to cnd-main:
http://hg.netbeans.org/cnd-main/rev/bc803dfcccc9
Comment 6 _ hair 2010-07-06 05:26:52 UTC
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++ ?
Comment 7 Vladimir Kvashin 2010-07-06 07:57:40 UTC
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.
Comment 8 Quality Engineering 2010-07-07 03:24:46 UTC
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
Comment 9 _ hair 2010-07-14 08:00:58 UTC
looks good now using "Build 100714-5750efc684e1" (main's trunk last night).
Comment 10 Vladimir Kvashin 2010-09-08 09:57:06 UTC
*** Bug 189966 has been marked as a duplicate of this bug. ***