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 246795

Summary: NullPointerException at org.netbeans.modules.cnd.completion.csm.CsmContextUtilities.isInContext
Product: cnd Reporter: Exceptions Reporter <exceptions_reporter>
Component: Code CompletionAssignee: petrk
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 211528
Attachments: stacktrace

Description Exceptions Reporter 2014-09-01 07:35:20 UTC
This bug was originally marked as duplicate of bug 148655, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build nbms-and-javadoc-2070-on-20140830)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.65-b04, Java(TM) SE Runtime Environment, 1.7.0_67-b01
OS: Mac OS X

User Comments:
GUEST: compile




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.cnd.completion.csm.CsmContextUtilities.isInContext(CsmContextUtilities.java:490)
   at org.netbeans.modules.cnd.completion.csm.CsmContextUtilities.canBreak(CsmContextUtilities.java:442)
   at org.netbeans.modules.cnd.completion.csm.CsmContextUtilities.findEntryDeclarations(CsmContextUtilities.java:329)
   at org.netbeans.modules.cnd.completion.csm.CsmContextUtilities.addEntryDeclarations(CsmContextUtilities.java:316)
   at org.netbeans.modules.cnd.completion.csm.CsmContextUtilities.findLocalDeclarations(CsmContextUtilities.java:307)
   at org.netbeans.modules.cnd.completion.csm.CsmContextUtilities.findFunctionLocalDeclarations(CsmContextUtilities.java:138)
Comment 1 Exceptions Reporter 2014-09-01 07:35:43 UTC
Created attachment 148971 [details]
stacktrace
Comment 2 Exceptions Reporter 2014-12-27 16:29:37 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=211528
Comment 3 petrk 2016-09-01 20:06:29 UTC
Fixed in http://hg.netbeans.org/cnd-main/rev/47b7111fe5fa
Comment 4 Quality Engineering 2016-09-03 02:14:39 UTC
Integrated into 'main-silver', will be available in build *201609030002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/47b7111fe5fa
User: Petr Kudryavtsev <petrk@netbeans.org>
Log: Fixed #246795 - NullPointerException at org.netbeans.modules.cnd.completion.csm.CsmContextUtilities.isInContext