Skip to content

Commit a350631

Browse files
committed
return when context is null
1 parent d76f57d commit a350631

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

jme3-ios/src/main/java/com/jme3/app/IosApplicationLauncher.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ protected void startApplication(Application application) throws Exception {
7070
public void update() {
7171
if (app == null) return;
7272
JmeContext context = app.getContext();
73+
if (context == null) return;
7374
if (context instanceof IGLESContext) {
7475
((IGLESContext) context).runFrame();
7576
} else {
@@ -80,6 +81,7 @@ public void update() {
8081
public void resize(int width, int height) {
8182
if (app == null) return;
8283
JmeContext context = app.getContext();
84+
if (context == null) return;
8385
if (context instanceof IGLESContext) {
8486
((IGLESContext) context).resizeFramebuffer(width, height);
8587
} else {

0 commit comments

Comments
 (0)