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 166230 - NullPointerException at org.netbeans.modules.cnd.refactoring.ui.WhereUsedPanel.getScopeProject
Summary: NullPointerException at org.netbeans.modules.cnd.refactoring.ui.WhereUsedPane...
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Vladimir Voskresensky
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-29 03:15 UTC by shaidan
Modified: 2009-06-10 14:06 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 150856


Attachments
stacktrace (521 bytes, text/plain)
2009-05-29 03:16 UTC, shaidan
Details
stacktrace (521 bytes, text/plain)
2009-06-04 08:56 UTC, shaidan
Details
stacktrace (521 bytes, text/plain)
2009-06-04 09:06 UTC, shaidan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description shaidan 2009-05-29 03:15:07 UTC
Build: NetBeans IDE 6.7 Beta (Build 200904242137)
VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03
OS: Windows XP, 5.1, x86

User Comments:
sreque: I was trying to run "Find Usages" on a C struct member. The first time Itried, it erroneously reported that the member was not used anywhere, when it in fact is used in dozens of places or more. The second time I tried it threw this exception.

GUEST: Trying to find usages of OpenGL type GLuint in c++ project



Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.cnd.refactoring.ui.WhereUsedPanel.getScopeProject(WhereUsedPanel.java:147)
        at org.netbeans.modules.cnd.refactoring.ui.WhereUsedQueryUI.setParameters(WhereUsedQueryUI.java:99)
        at org.netbeans.modules.refactoring.spi.impl.ParametersPanel$Prepare.run(ParametersPanel.java:777)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:573)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1005)
Comment 1 shaidan 2009-05-29 03:16:40 UTC
Created attachment 82956 [details]
stacktrace
Comment 2 Exceptions Reporter 2009-05-29 10:36:09 UTC
This issue already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=150856
Comment 3 shaidan 2009-06-04 08:56:38 UTC
Build: NetBeans IDE 6.7 Beta (Build 200904242137)
VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03
OS: Windows XP, 5.1, x86

User Comments: 


Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.cnd.refactoring.ui.WhereUsedPanel.getScopeProject(WhereUsedPanel.java:147)
        at org.netbeans.modules.cnd.refactoring.ui.WhereUsedQueryUI.setParameters(WhereUsedQueryUI.java:99)
        at org.netbeans.modules.refactoring.spi.impl.ParametersPanel$Prepare.run(ParametersPanel.java:777)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:573)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1005)
Comment 4 shaidan 2009-06-04 08:56:47 UTC
Created attachment 83189 [details]
stacktrace
Comment 5 shaidan 2009-06-04 09:05:58 UTC
Build: NetBeans IDE 6.7 Beta (Build 200904242137)
VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03
OS: Windows XP, 5.1, x86

User Comments: 


Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.cnd.refactoring.ui.WhereUsedPanel.getScopeProject(WhereUsedPanel.java:147)
        at org.netbeans.modules.cnd.refactoring.ui.WhereUsedQueryUI.setParameters(WhereUsedQueryUI.java:99)
        at org.netbeans.modules.refactoring.spi.impl.ParametersPanel$Prepare.run(ParametersPanel.java:777)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:573)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1005)
Comment 6 shaidan 2009-06-04 09:06:07 UTC
Created attachment 83190 [details]
stacktrace
Comment 7 Vladimir Voskresensky 2009-06-08 11:05:49 UTC
Is there steps to reproduce?
Thanks,
Vladimir.
Comment 8 dnikitin 2009-06-08 17:12:04 UTC
-- open fractal.cc from Fractal sample project
-- invoke find usages for real (line 48)
-- invoke find usages for a (line 55)
-- invoke find usages for img (line 49)
==> NPE
java.lang.NullPointerException
	at org.netbeans.modules.cnd.refactoring.ui.WhereUsedPanel.getScopeProject(WhereUsedPanel.java:148)
	at org.netbeans.modules.cnd.refactoring.ui.WhereUsedQueryUI.setParameters(WhereUsedQueryUI.java:99)
	at org.netbeans.modules.refactoring.spi.impl.ParametersPanel$Prepare.run(ParametersPanel.java:786)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:577)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1030)
Comment 9 Alexander Pepin 2009-06-08 17:18:37 UTC
After NPE happening user can not find usages any more as NPE will appear steadily. 
Comment 10 Vladimir Voskresensky 2009-06-08 17:29:42 UTC
Ok. looks like the one fixed in trunk:
http://hg.netbeans.org/cnd-main?cmd=changeset;node=96d691ba505d
Comment 11 Vladimir Voskresensky 2009-06-08 17:37:05 UTC
Alexey, please, review the patch as 67 candidate
Comment 12 Alexander Pepin 2009-06-08 17:40:58 UTC
Then I'm starting a showstopper process.
Comment 13 Alexey Vladykin 2009-06-08 17:56:41 UTC
I have reviewed the fix and have no objections.
Comment 14 soldatov 2009-06-09 10:04:51 UTC
Verified in NB6.7RC3 + jar with fix from developers
Comment 15 Alexey Vladykin 2009-06-09 10:13:32 UTC
Integrated into release67:
http://hg.netbeans.org/release67/rev/372a30196fcf
Comment 16 dnikitin 2009-06-10 14:06:35 UTC
verified in NetBeans IDE 6.7 RC3 (Build 200906100001)