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 - NullPointerException at org.openide.nodes.CookieSet.getCookie
Summary: NullPointerException at org.openide.nodes.CookieSet.getCookie
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Nodes (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Jan Peska
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-08 17:41 UTC by furas
Modified: 2013-12-11 13:35 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 203686


Attachments
stacktrace (3.03 KB, text/plain)
2013-09-08 17:41 UTC, furas
Details

Note You need to log in before you can comment on or make changes to this bug.
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.