Bugfix: NullPointerException
This commit is contained in:
@@ -176,8 +176,10 @@ public class Working implements Activity {
|
|||||||
InputStream is = new ByteArrayInputStream(data);
|
InputStream is = new ByteArrayInputStream(data);
|
||||||
try {
|
try {
|
||||||
BufferedImage image = ImageIO.read(is);
|
BufferedImage image = ImageIO.read(is);
|
||||||
|
if (image != null) {
|
||||||
lastRender.setIcon(new ImageIcon(image));
|
lastRender.setIcon(new ImageIcon(image));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
catch (IOException e) {
|
catch (IOException e) {
|
||||||
System.out.println("Working::showLastRender() exception " + e);
|
System.out.println("Working::showLastRender() exception " + e);
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
|||||||
Reference in New Issue
Block a user