mirror of
https://github.com/processing/processing4.git
synced 2026-02-22 14:55:41 +01:00
Fix NPE in PDE, affecting color picker and other Tools.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user