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 235515 - NPE in type deduction
Summary: NPE in type deduction
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Completion (show other bugs)
Version: 7.4
Hardware: PC Solaris
: P1 normal (vote)
Assignee: petrk
URL:
Keywords: 7.4_HR_FIX
: 235512 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-09-04 15:30 UTC by petrk
Modified: 2013-11-11 15:04 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description petrk 2013-09-04 15:30:58 UTC

    
Comment 1 petrk 2013-09-04 15:33:34 UTC
java.lang.NullPointerException
    at org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery$Context.gatherTemplateParamsMap(CsmCompletionQuery.java:2801)
    at org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery$Context.collectInstantiationParameters(CsmCompletionQuery.java:2772)
    at org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery$Context.createInstantiation(CsmCompletionQuery.java:2723)
    at org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery$Context.extractFunctionType(CsmCompletionQuery.java:1353)
    at org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery$Context.resolveItem(CsmCompletionQuery.java:2637)
    at org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery$Context.resolveParams(CsmCompletionQuery.java:1503)
    at org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery$Context.resolveExp(CsmCompletionQuery.java:1535)
    at org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery.getResult(CsmCompletionQuery.java:582)
    at org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery.queryImpl(CsmCompletionQuery.java:431)
    at org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery.query(CsmCompletionQuery.java:379)
    at org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery.query(CsmCompletionQuery.java:372)
    at org.netbeans.modules.cnd.completion.csm.CompletionUtilities.findItemsReferencedAtCaretPos(CompletionUtilities.java:154)
    at org.netbeans.modules.cnd.completion.impl.xref.ReferencesSupport.findDeclaration(ReferencesSupport.java:478)
    at org.netbeans.modules.cnd.completion.impl.xref.ReferencesSupport.findDeclaration(ReferencesSupport.java:434)
    at org.netbeans.modules.cnd.completion.impl.xref.ReferencesSupport.findReferencedObject(ReferencesSupport.java:248)
    at org.netbeans.modules.cnd.completion.impl.xref.ReferenceImpl.getReferencedObject(ReferenceImpl.java:105)
    at org.netbeans.modules.cnd.modelimpl.trace.TraceXRef.createLightWeightEntry(TraceXRef.java:582)
    at org.netbeans.modules.cnd.modelimpl.trace.TraceXRef.access$100(TraceXRef.java:118)
    at org.netbeans.modules.cnd.modelimpl.trace.TraceXRef$LWCheckReferenceVisitor.visit(TraceXRef.java:442)
    at org.netbeans.modules.cnd.completion.impl.xref.FileReferencesImpl._accept(FileReferencesImpl.java:150)
    at org.netbeans.modules.cnd.completion.impl.xref.FileReferencesImpl.accept(FileReferencesImpl.java:106)
    at org.netbeans.modules.cnd.modelimpl.trace.TraceXRef.analyzeFile(TraceXRef.java:388)
    at org.netbeans.modules.cnd.modelimpl.trace.TraceXRef.access$000(TraceXRef.java:118)
    at org.netbeans.modules.cnd.modelimpl.trace.TraceXRef$1.run(TraceXRef.java:292)
Comment 2 petrk 2013-09-04 15:35:01 UTC
Fixed in http://hg.netbeans.org/cnd-main/rev/b2c519f3d619
Comment 3 petrk 2013-09-04 16:35:55 UTC
*** Bug 235512 has been marked as a duplicate of this bug. ***
Comment 4 soldatov 2013-09-09 10:31:50 UTC
verified in trunk

Product Version         = NetBeans IDE Dev (Build 201309090001) (#0d0494161044)
Operating System        = SunOS version 5.11 running on x86
Comment 5 Vladimir Voskresensky 2013-09-09 14:40:22 UTC
fix is safe
Comment 7 soldatov 2013-09-16 10:22:30 UTC
verified in NetBeans IDE 7.4 RC1 (Build 201309152201)