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.
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)
Created attachment 137029 [details] stacktrace
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.
BTW I had opened HTML5 project as well, of course.
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.
Damn. I tested it but obviously I have not built the right module before my test.
73ff65a1776c
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
*** Bug 232630 has been marked as a duplicate of this bug. ***
Improved the hotfix to use @StaticResource annotation - f6fa9fd913b7. Thx for the idea.