javasabr hace 9 años
padre
commit
98f1bfc0c1
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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);
+        }
     }
 
     /**