The method java.beans.SimpleBeanInfo.loadImage(String) throw a NPE if the image resource was not found. It should look more like: public Image loadImage(String location) { URL url = getClass().getResource(location); if(url == null){ return null; } return Toolkit.getDefaultToolkit().getImage(url); }
Thanks for the report. I've added a Mauve test that covers this bug. Your suggested fix is good, although it needs a check for a null 'location' argument as well. I'll commit something to CVS shortly.
The fix is committed to CVS: 2006-11-09 David Gilbert <david.gilbert@object-refinery.com> Fixes bug #29770 * java/beans/SimpleBeanInfo.java (loadImage): Check for nulls.