소스 검색

fixed NPE

javasabr 9 년 전
부모
커밋
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);
+        }
     }
 
     /**