From eb1964a180aa831aaa482e6abbeed4816dd77365 Mon Sep 17 00:00:00 2001 From: "nor..67" Date: Tue, 5 Feb 2013 19:47:57 +0000 Subject: [PATCH] - fix NPE in BulletAppState git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10346 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/bullet-common/com/jme3/bullet/BulletAppState.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/engine/src/bullet-common/com/jme3/bullet/BulletAppState.java b/engine/src/bullet-common/com/jme3/bullet/BulletAppState.java index cdf93479d..518103a55 100644 --- a/engine/src/bullet-common/com/jme3/bullet/BulletAppState.java +++ b/engine/src/bullet-common/com/jme3/bullet/BulletAppState.java @@ -171,6 +171,7 @@ public class BulletAppState implements AppState, PhysicsTickListener { if (!initialized) { startPhysics(); } + this.app = app; this.stateManager = stateManager; initialized = true; } @@ -339,5 +340,6 @@ public class BulletAppState implements AppState, PhysicsTickListener { * parallel, update order is kept.
Multiple BulletAppStates will * execute in parallel in this mode. */ - PARALLEL,} + PARALLEL, + } }