Bugfix: NullPointerException

This commit is contained in:
Laurent Clouet
2016-09-11 13:33:34 +02:00
parent 0000718830
commit 0d660b023b

View File

@@ -176,7 +176,9 @@ public class Working implements Activity {
InputStream is = new ByteArrayInputStream(data);
try {
BufferedImage image = ImageIO.read(is);
lastRender.setIcon(new ImageIcon(image));
if (image != null) {
lastRender.setIcon(new ImageIcon(image));
}
}
catch (IOException e) {
System.out.println("Working::showLastRender() exception " + e);