javasabr 9 лет назад
Родитель
Сommit
98f1bfc0c1
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      jme3-core/src/main/java/com/jme3/app/LegacyApplication.java

+ 3 - 1
jme3-core/src/main/java/com/jme3/app/LegacyApplication.java

@@ -540,7 +540,9 @@ public class LegacyApplication implements Application, SystemListener {
      * Internal use only.
      */
     public void reshape(int w, int h){
-        renderManager.notifyReshape(w, h);
+        if (renderManager != null) {
+            renderManager.notifyReshape(w, h);
+        }
     }
 
     /**