Minor fix for better error message.

This commit is contained in:
Harald Kuhr 2011-10-13 09:53:20 +02:00
parent 3e5da06e80
commit 1ba271af9d

View File

@ -49,7 +49,7 @@ public class BufferedImageIcon implements Icon {
private final boolean fast;
public BufferedImageIcon(BufferedImage pImage) {
this(pImage, pImage.getWidth(), pImage.getHeight());
this(pImage, pImage != null ? pImage.getWidth() : 0, pImage != null ? pImage.getHeight() : 0);
}
public BufferedImageIcon(BufferedImage pImage, int pWidth, int pHeight) {