Fixed an NPE in the FlyCamAppState that occurred

when shutting down an app with no InputManager.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10945 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
experimental
PSp..om 11 years ago
parent cf830b4c7c
commit 767231a4a8
  1. 2
      engine/src/core/com/jme3/app/FlyCamAppState.java

@ -87,8 +87,10 @@ public class FlyCamAppState extends AbstractAppState {
public void cleanup() { public void cleanup() {
super.cleanup(); super.cleanup();
if (app.getInputManager() != null) {
flyCam.unregisterInput(); flyCam.unregisterInput();
} }
}
} }

Loading…
Cancel
Save