From 5491f0b74997e3f27f231a9bda5e2de00a040e9d Mon Sep 17 00:00:00 2001 From: "rem..om" Date: Tue, 31 May 2011 06:11:19 +0000 Subject: [PATCH] Fixed NPE in KinematicRagdollControl when removing the ragdoll from the scene (thanks Teique) git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7538 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../com/jme3/bullet/control/KinematicRagdollControl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/jbullet/com/jme3/bullet/control/KinematicRagdollControl.java b/engine/src/jbullet/com/jme3/bullet/control/KinematicRagdollControl.java index 7937780e4..08809f3a2 100644 --- a/engine/src/jbullet/com/jme3/bullet/control/KinematicRagdollControl.java +++ b/engine/src/jbullet/com/jme3/bullet/control/KinematicRagdollControl.java @@ -586,8 +586,8 @@ public class KinematicRagdollControl implements PhysicsControl, PhysicsCollision } this.space = space; addToPhysicsSpace(); + this.space.addCollisionListener(this); } - this.space.addCollisionListener(this); } /**