Bug 235655 - NullPointerException at org.openide.nodes.CookieSet.getCookie
NullPointerException at org.openide.nodes.CookieSet.getCookie
Status: RESOLVED WONTFIX
Product: platform
Classification: Unclassified
Component: Nodes
7.4
All All
: P3 (vote)
: TBD
Assigned To: Jan Peska
issues@platform
EXCEPTIONS_REPORT
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-09-08 17:41 UTC by furas
Modified: 2013-12-11 13:35 UTC (History)
0 users

See Also:
Issue Type: DEFECT
:


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.


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo