NPE when removing BetterCharacterControl from PhysicsSpace

Hi, I’m using the new BetterCharacterControl, it extremely useful, thanks for it!
The problem I’ve is that I’m trying to replace it for a simpler RigidBodyControl in a given time (when an enemy dies).


When I do that I get a NullPointerException:

java.lang.NullPointerException at com.jme3.bullet.control.BetterCharacterControl.removePhysics( at com.jme3.bullet.control.AbstractPhysicsControl.setPhysicsSpace( at com.jme3.bullet.PhysicsSpace.remove(

Looks like the internal variable space is not set .

Am I doing something wrong or is it a bug in BCC?