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.
[ JDK VERSION : 1.6.* ] I've tried to switch to the 6.7 beta version of the platform for my platform-based application. At program startup I'm getting an exception when org.openide.awt.DynaMenuModel gets loaded: the BLANK_ICON static variable cannot be initialized because org/openide/loaders/empty.gif is not in the classpath.
Created attachment 81457 [details] messages.log for the application
probably a duplicate, please evaluate, thanks.
Thanks for testing compatibility of the platform before final release. Can you please put breakpoint or debug message to org.openide.awt.AlwaysEnabledAction.extractCommonAttribute(AlwaysEnabledAction.java:156) and find out which FileObject has the faulty attribute? Thanks.
It was a missing resource for my own TopComponent, specified as an "iconBase" attribute in layer.xml - I hadn't noticed the missing icon: it used to fail silently in nb 6.5, now it throws an exception. Maybe a warning would be more appropriate?
Problem1: ImageUtilities.loadImage(String,boolean) does not say that it can return null. But it can. Please update javadoc. Problem2: When one calls loadImageIcon(samepath, true) one gets NPE. Because loadImage returns null. The loadImageIcon shall and loadIcon, etc. shall declare that they can return null and return it instead of throwing NPE. Enhancement3: image2Icon and icon2Image could also accept null as input argument. Needs change in code and in javadoc.
Enhancement3 does not sound necessary.
core-main #7bf1176987b0
Integrated into 'main-golden', will be available in build *200905070201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/7bf1176987b0 User: Tomas Holy <t_h@netbeans.org> Log: #164371: ImageUtilities behaviour inconsistent