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
This commit is contained in:
parent
cf830b4c7c
commit
767231a4a8
@ -87,7 +87,9 @@ public class FlyCamAppState extends AbstractAppState {
|
||||
public void cleanup() {
|
||||
super.cleanup();
|
||||
|
||||
flyCam.unregisterInput();
|
||||
if (app.getInputManager() != null) {
|
||||
flyCam.unregisterInput();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user