Merge pull request #2425 from jdf/master

Fix NPE in PDE, affecting color picker and other Tools.
This commit is contained in:
Ben Fry
2014-04-03 16:52:08 -04:00
+3 -1
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();