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 197878

Summary: NullPointerException at org.netbeans.modules.cnd.completion.cplusplus.ext.CompletionSupport.findExactVarType
Product: cnd Reporter: stiffuser
Component: Code CompletionAssignee: Vladimir Voskresensky <vv159170>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 7.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 178423
Attachments: stacktrace

Description stiffuser 2011-04-20 03:56:22 UTC
This issue was reported manually by stiffuser.
It already has 1 duplicates 


Build: NetBeans IDE 7.0 RC2 (Build 201104070802)
VM: Java HotSpot(TM) 64-Bit Server VM, 19.1-b02-334, Java(TM) SE Runtime Environment, 1.6.0_24-b07-334-10M3326
OS: Mac OS X

Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.cnd.completion.cplusplus.ext.CompletionSupport.findExactVarType(CompletionSupport.java:517)
   at org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery$Context.findExactVarType(CsmCompletionQuery.java:2355)
   at org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery$Context.resolveItem(CsmCompletionQuery.java:1349)
   at org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery$Context.resolveParams(CsmCompletionQuery.java:1097)
   at org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery$Context.resolveExp(CsmCompletionQuery.java:1129)
   at org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery.getResult(CsmCompletionQuery.java:350)
Comment 1 stiffuser 2011-04-20 03:56:27 UTC
Created attachment 107847 [details]
stacktrace
Comment 2 Vladimir Voskresensky 2011-05-02 09:08:43 UTC
http://hg.netbeans.org/cnd-main/rev/1c8cc9b8a31e
Comment 3 Quality Engineering 2011-05-03 05:27:11 UTC
Integrated into 'main-golden', will be available in build *201105030000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/1c8cc9b8a31e
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixed #197878 -  NullPointerException at org.netbeans.modules.cnd.completion.cplusplus.ext.CompletionSupport.findExactVarType
variable can be without initial value expression