Fix NPE in PDE, affecting color picker and other Tools.

This commit is contained in:
Jonathan Feinberg
2014-04-03 10:46:43 -04:00
parent e06bbcf2fd
commit 5ffe70516b

View File

@@ -2369,7 +2369,9 @@ public class PApplet extends Applet
render();
} else {
Graphics screen = getGraphics();
screen.drawImage(g.image, 0, 0, width, height, null);
if (screen != null) {
screen.drawImage(g.image, 0, 0, width, height, null);
}
}
} else {
repaint();