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 235655

Summary: NullPointerException at org.openide.nodes.CookieSet.getCookie
Product: platform Reporter: furas <furas>
Component: NodesAssignee: Jan Peska <JPESKA>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: P3    
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 203686
Attachments: stacktrace

Description furas 2013-09-08 17:41:02 UTC
Build: NetBeans IDE 7.4 Beta (Build nbms-and-javadoc-433-on-20130908)
VM: OpenJDK Client VM, 23.7-b01, OpenJDK Runtime Environment, 1.7.0_25-b30
OS: Linux

User Comments:
furas: create new PHP project with existing source (WordPress)




Stacktrace: 
java.lang.NullPointerException
   at org.openide.nodes.CookieSet.getCookie(CookieSet.java:173)
   at org.netbeans.modules.csl.core.GsfDataObject.getCookie(GsfDataObject.java:135)
   at org.openide.loaders.DataNode.getCookie(DataNode.java:435)
   at org.openide.nodes.NodeLookup.addCookie(NodeLookup.java:100)
   at org.openide.nodes.NodeLookup.updateLookupAsCookiesAreChanged(NodeLookup.java:192)
   at org.openide.nodes.NodeLookup.beforeLookup(NodeLookup.java:163)
Comment 1 furas 2013-09-08 17:41:04 UTC
Created attachment 139800 [details]
stacktrace
Comment 2 Jan Peska 2013-12-11 13:35:13 UTC
Hmm this doesn't make any sense to me:

if (ic != null) {
    ic.beforeLookupImpl(clazz); //this line should throw the NPE
}

Since ic if final field I don't see how it could be null -> Closing for now, I'll reopen if it happens again.