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 242120 - NullPointerException at org.openide.loaders.InstanceNode.initIcon
Summary: NullPointerException at org.openide.loaders.InstanceNode.initIcon
Status: NEW
Alias: None
Product: third-party
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: arittner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-19 21:40 UTC by rherschke
Modified: 2017-04-26 14:10 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 207794


Attachments
stacktrace (3.25 KB, text/plain)
2014-02-19 21:40 UTC, rherschke
Details
stacktrace (3.25 KB, text/plain)
2014-07-10 14:28 UTC, Ondrej Vrabec
Details
stacktrace (3.83 KB, text/plain)
2015-08-24 09:05 UTC, jiai
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rherschke 2014-02-19 21:40:46 UTC
This bug was originally marked as duplicate of bug 157278, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.0 Beta (Build 201401141042)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.45-b08, Java(TM) SE Runtime Environment, 1.7.0_45-b18
OS: Mac OS X

User Comments:
rherschke: start to customize toolbar after installing project-group-toolbar-plugin




Stacktrace: 
java.lang.NullPointerException
   at org.openide.loaders.InstanceNode.initIcon(InstanceNode.java:271)
   at org.openide.loaders.InstanceNode.getIcon(InstanceNode.java:189)
   at org.openide.nodes.FilterNode.getIcon(FilterNode.java:561)
   at org.openide.nodes.FilterNode.getIcon(FilterNode.java:561)
   at org.openide.nodes.FilterNode.getIcon(FilterNode.java:561)
   at org.openide.explorer.view.VisualizerNode.getIcon(VisualizerNode.java:558)
Comment 1 rherschke 2014-02-19 21:40:48 UTC
Created attachment 145417 [details]
stacktrace
Comment 2 Ondrej Vrabec 2014-02-20 08:09:55 UTC
likely a problem with the plugin (project-group-toolbar-plugin). But maybe org.openide.loaders.InstanceNode could log more info about the InstanceCookie so we know what node/action is the culprit or it could log only with INFO instead of WARNING:
> // Problem ==>> use default icon
> Logger.getLogger(InstanceNode.class.getName()).log(Level.WARNING, null, e);
> brokenIcon = true;
Comment 3 Jaroslav Havlin 2014-02-24 09:33:34 UTC
(In reply to Ondrej Vrabec from comment #2)
> likely a problem with the plugin (project-group-toolbar-plugin). But maybe
> org.openide.loaders.InstanceNode could log more info about the
> InstanceCookie so we know what node/action is the culprit...
http://hg.netbeans.org/core-main/rev/4ef47ae46eac
Thank you, Ondra.


The problem originates in "Project Group Toolbar" plugin:

WARNING [org.openide.loaders]: [...]: action javax.swing.Action does not implement SystemAction.getName() or Action.getValue(NAME) properly. It returns null!
[...]
INFO [org.openide.loaders.InstanceNode]: ic = org.openide.loaders.InstanceDataObject@3b56c3e3[MultiFileObject@5013e61[Actions/Project/org-sepix-modules-project-ui-groups-ProjectGroupDropDownWrapper.instance]]

Reassigning to plugin owner. Please evaluate it. Thank you.
Comment 4 arittner 2014-02-24 12:58:19 UTC
I'll check this
Comment 5 Quality Engineering 2014-02-26 03:04:01 UTC
Integrated into 'main-silver', will be available in build *201402260001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/4ef47ae46eac
User: Jaroslav Havlin <jhavlin@netbeans.org>
Log: #242120: NullPointerException at org.openide.loaders.InstanceNode.initIcon
Comment 6 Ondrej Vrabec 2014-07-10 14:28:17 UTC
Created attachment 147975 [details]
stacktrace

Customize Toolbars...
thrown for:
ic = (org.openide.loaders.InstanceDataObject) org.openide.loaders.InstanceDataObject@7b61c4fa[MultiFileObject@16970e60[Actions/Project/org-sepix-modules-project-ui-groups-ProjectGroupDropDownWrapper.instance]]
Comment 7 Exceptions Reporter 2015-08-21 12:41:15 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=207794
Comment 8 jiai 2015-08-24 09:05:30 UTC
Created attachment 155571 [details]
stacktrace

Customizing the toolbar.
Comment 9 Exceptions Reporter 2017-04-26 14:10:14 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=207794