Skip to content

Commit f55a014

Browse files
committed
check that glview is non-null
1 parent 9a4f62a commit f55a014

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/src/processing/opengl/PGLES.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,9 @@ public GLSurfaceView getNative() {
115115

116116
@Override
117117
public void queueEvent(Runnable runnable) {
118-
glview.queueEvent(runnable);
118+
if (glview != null) {
119+
glview.queueEvent(runnable);
120+
}
119121
}
120122

121123

0 commit comments

Comments
 (0)