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.
Build: NetBeans IDE 8.2 RC (Build 201609140952) VM: Java HotSpot(TM) 64-Bit Server VM, 25.102-b14, Java(TM) SE Runtime Environment, 1.8.0_102-b14 OS: Linux User Comments: GUEST: . Stacktrace: java.lang.NullPointerException at org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery.getResolvedContext(CsmCompletionQuery.java:859) at org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery.performQueryTask(CsmCompletionQuery.java:411) at org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery.queryObjects(CsmCompletionQuery.java:299) at org.netbeans.modules.cnd.completion.cplusplus.CsmExpressionResolverImpl.resolveObjects(CsmExpressionResolverImpl.java:64) at org.netbeans.modules.cnd.api.model.services.CsmExpressionResolver$Default.resolveObjects(CsmExpressionResolver.java:436) at org.netbeans.modules.cnd.api.model.services.CsmExpressionResolver.resolveObjects(CsmExpressionResolver.java:103)
Created attachment 162315 [details] stacktrace
Steps to reproduce: copy an LLVM34 project from perf-linux, open it, answer "no" on the proposal to consider .inc files as C++. This should be already fixed in 28ab2964f78c at enum/release82 Although more investigation is needed to understand why this did not happen before.
In most places there were null checks for CompletionSupport.get() return; but in some places they were absent. I added null checks for all calls they were absent: f650660afb55 (enum/release82).
Integrated into 'main-silver', will be available in build *201610200002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/23a64f2af6b7 User: Vladimir Kvashin <vkvashin@netbeans.org> Log: additional fix for #268318 - NullPointerException at org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery.getResolvedContext (transplanted from f650660afb55bf1d4be0115e908ec4dd9bca5b14)