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 269635 - NullPointerException at org.openide.util.ImageUtilities.icon2Image
Summary: NullPointerException at org.openide.util.ImageUtilities.icon2Image
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: Dev
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Tomas Stupka
URL:
Keywords: PATCH_AVAILABLE
Depends on:
Blocks:
 
Reported: 2017-01-23 21:26 UTC by Jesse Glick
Modified: 2017-04-13 19:15 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 227788


Attachments
stacktrace (2.39 KB, text/plain)
2017-01-23 21:26 UTC, Jesse Glick
Details
Patch to make the root bug diagnosable from logs, as well as to prevent more serious errors (5.39 KB, patch)
2017-01-30 18:18 UTC, Jesse Glick
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2017-01-23 21:26:56 UTC
Build: NetBeans IDE Dev (Build 20170109-e724d7d59b25)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.112-b15, Java(TM) SE Runtime Environment, 1.8.0_112-b15
OS: Linux

User Comments:
jglick: Disabled some unwanted plugins, and now icons are broken in a lot of places.




Stacktrace: 
java.lang.NullPointerException
   at org.openide.util.ImageUtilities.icon2Image(ImageUtilities.java:287)
   at org.netbeans.modules.refactoring.java.ui.scope.CurrentJavaProjectDependenciesScopeProvider.initialize(CurrentJavaProjectDependenciesScopeProvider.java:125)
   at org.netbeans.modules.refactoring.spi.impl.DelegatingScopeProvider.initialize(DelegatingScopeProvider.java:95)
   at org.netbeans.modules.refactoring.spi.ui.ScopePanel.initialize(ScopePanel.java:148)
   at org.netbeans.modules.refactoring.java.ui.WhereUsedPanel$2.run(WhereUsedPanel.java:174)
   at org.netbeans.modules.refactoring.java.ui.WhereUsedPanel$2.run(WhereUsedPanel.java:157)
Comment 1 Jesse Glick 2017-01-23 21:26:59 UTC
Created attachment 163459 [details]
stacktrace
Comment 2 Jesse Glick 2017-01-30 18:17:52 UTC
After making some patches to NB code, I finally tracked down the root cause in a plugin and fixed it: https://github.com/stapler/netbeans-stapler-plugin/commit/2f8b9b6d9bdd777012c582315775e400d31b8742

Keeping this open for the lack of proper reporting.
Comment 3 Jesse Glick 2017-01-30 18:18:47 UTC
Created attachment 163511 [details]
Patch to make the root bug diagnosable from logs, as well as to prevent more serious errors
Comment 4 Tomas Stupka 2017-02-22 16:20:36 UTC
thanks for the patch
Comment 5 Tomas Stupka 2017-02-23 10:12:25 UTC
fixed in jet-main #dcf2a3c88105
Comment 6 Quality Engineering 2017-03-01 02:52:11 UTC
Integrated into 'main-silver', will be available in build *201703010002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/dcf2a3c88105
User: Tomas Stupka <tstupka@netbeans.org>
Log: Issue #269635 - NullPointerException at org.openide.util.ImageUtilities.icon2Image