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 232588 - NullPointerException at org.openide.util.ImageUtilities.mergeImages
Summary: NullPointerException at org.openide.util.ImageUtilities.mergeImages
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Project (show other bugs)
Version: 7.4
Hardware: All All
: P2 normal (vote)
Assignee: David Konecny
URL:
Keywords:
: 232630 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-07-12 05:15 UTC by Tomas Mysik
Modified: 2013-07-15 02:06 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 202089


Attachments
stacktrace (1.95 KB, text/plain)
2013-07-12 05:15 UTC, Tomas Mysik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Mysik 2013-07-12 05:15:40 UTC
Build: NetBeans IDE Dev (Build 20130712-4b50c9cf7da6)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.25-b01, Java(TM) SE Runtime Environment, 1.7.0_25-b15
OS: Linux

User Comments:
tmysik: just start IDE with PHP project opened




Stacktrace: 
java.lang.NullPointerException
   at org.openide.util.ImageUtilities.mergeImages(ImageUtilities.java:203)
   at org.netbeans.modules.web.clientproject.browser.ActiveBrowserAction.badgeImageWithArrow(ActiveBrowserAction.java:380)
   at org.netbeans.modules.web.clientproject.browser.ActiveBrowserAction.updateButton(ActiveBrowserAction.java:355)
   at org.netbeans.modules.web.clientproject.browser.ActiveBrowserAction.getToolbarPresenter(ActiveBrowserAction.java:290)
   at org.openide.awt.Toolbar$Folder.createInstance(Toolbar.java:436)
   at org.openide.loaders.FolderInstance.defaultProcessObjectsFinal(FolderInstance.java:885)
Comment 1 Tomas Mysik 2013-07-12 05:15:42 UTC
Created attachment 137029 [details]
stacktrace
Comment 2 Tomas Mysik 2013-07-12 05:20:02 UTC
Davide, please use @StaticResource annotation wherever possible to avoid this kind of errors (at least I think that this would help in this case, sorry if not).

Thanks.
Comment 3 Tomas Mysik 2013-07-12 05:20:24 UTC
BTW I had opened HTML5 project as well, of course.
Comment 4 Tomas Mysik 2013-07-12 05:45:03 UTC
Also, I am not sure whether it is a good idea to use icons from other modules - they can be changed or even removed anytime... IMHO it is better to copy such images to the given module.
Comment 5 David Konecny 2013-07-12 08:02:52 UTC
Damn. I tested it but obviously I have not built the right module before my test.
Comment 6 David Konecny 2013-07-12 08:08:34 UTC
73ff65a1776c
Comment 7 Quality Engineering 2013-07-13 02:02:56 UTC
Integrated into 'main-silver', will be available in build *201307122300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/73ff65a1776c
User: David Konecny <dkonecny@netbeans.org>
Log: #232588 - NullPointerException at org.openide.util.ImageUtilities.mergeImages
Comment 8 David Konecny 2013-07-14 22:30:26 UTC
*** Bug 232630 has been marked as a duplicate of this bug. ***
Comment 9 David Konecny 2013-07-15 02:06:08 UTC
Improved the hotfix to use @StaticResource annotation - f6fa9fd913b7. Thx for the idea.