Vassiliy.Kudryashov
2015-02-11 19:40:08 +03:00
parent 7474bfd63f
commit 6bc84cd119
@@ -55,7 +55,8 @@ class ImageObjectRenderer extends ToStringBasedRenderer implements FullValueEval
};
}
static JComponent createIconViewer(Icon icon) {
static JComponent createIconViewer(@Nullable Icon icon) {
if (icon == null) return new JLabel("null", JLabel.CENTER);
final int w = icon.getIconWidth();
final int h = icon.getIconHeight();
final BufferedImage image = GraphicsEnvironment.getLocalGraphicsEnvironment()