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 201073

Summary: NullPointerException at org.netbeans.modules.cnd.modelutil.CsmDisplayUtilities.getContextLineHtml
Product: cnd Reporter: Exceptions Reporter <exceptions_reporter>
Component: Code ModelAssignee: Alexander Simon <alexvsimon>
Status: VERIFIED FIXED    
Severity: normal CC: vv159170
Priority: P2    
Version: 7.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 179478
Attachments: stacktrace

Description Exceptions Reporter 2011-08-18 10:21:58 UTC
This issue was reported manually by vv159170.
It already has 1 duplicates 


Build: NetBeans IDE 7.0 (Build 201104080000)
VM: Java HotSpot(TM) Client VM, 10.0-b19, Java(TM) SE Runtime Environment, 1.6.0_05-b13
OS: SunOS

User Comments:
GUEST: Right clicked in the NAvigator and click Find Usages for a variable.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.cnd.modelutil.CsmDisplayUtilities.getContextLineHtml(CsmDisplayUtilities.java:105)
   at org.netbeans.modules.cnd.api.model.xref.CsmReferenceSupport.getContextLineHtml(CsmReferenceSupport.java:91)
   at org.netbeans.modules.cnd.refactoring.elements.CsmRefactoringElementImpl.create(CsmRefactoringElementImpl.java:98)
   at org.netbeans.modules.cnd.refactoring.plugins.CsmWhereUsedQueryPlugin.processIncludeQuery(CsmWhereUsedQueryPlugin.java:331)
   at org.netbeans.modules.cnd.refactoring.plugins.CsmWhereUsedQueryPlugin.doPrepareElements(CsmWhereUsedQueryPlugin.java:126)
   at org.netbeans.modules.cnd.refactoring.plugins.CsmWhereUsedQueryPlugin.prepare(CsmWhereUsedQueryPlugin.java:109)
Comment 1 Exceptions Reporter 2011-08-18 10:22:03 UTC
Created attachment 110063 [details]
stacktrace
Comment 2 Alexander Simon 2011-09-14 10:14:45 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/d5b47419b7ac

VV please review fix.
Comment 3 Vladimir Voskresensky 2011-09-14 14:00:17 UTC
fix is safe and correct
Comment 4 Alexander Simon 2011-09-14 15:32:22 UTC
transplanted in releases_elif branch release701_fixes
d5b47419b7ac transplanted to 4a1820c5aae7
Comment 5 Quality Engineering 2011-09-15 14:17:02 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/d5b47419b7ac
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #201073 NullPointerException at org.netbeans.modules.cnd.modelutil.CsmDisplayUtilities.getContextLineHtml
Comment 6 dnikitin 2011-09-16 12:55:04 UTC
verified in oss-platform-build #59 and sputnik-solstudio-main #3283
Comment 7 Quality Engineering 2011-09-26 13:27:20 UTC
Integrated into 'releases'
Changeset: http://hg.netbeans.org/releases/rev/4a1820c5aae7
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #201073 NullPointerException at org.netbeans.modules.cnd.modelutil.CsmDisplayUtilities.getContextLineHtml
(transplanted from d5b47419b7acbc0afdd248bb942c21368cc607a9)
Comment 8 Alexander Pepin 2011-09-27 13:03:20 UTC
verified in OSS dev build based on 7.0.1 patch2