AntonicelliVittorio / jmonkeyengine

Automatically exported from code.google.com/p/jmonkeyengine
0 stars 0 forks source link

Nullpointer in BetterCharacterControl.removePhysics(PhysicsSpace space) #586

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If a BetterCharacterControl is removed from the PhysicsSpace a Nullpointer 
occures in BetterCharacterControl.removePhysics(PhysicsSpace space).

Reason: In AbstractPhysicsControl.setPhysicsSpace(PhysicsSpace space) - which 
is called with parameter "null" by the PhysicsSpace in this case - the new 
value ("null") is forwarded as parameter.

Solution: Either forward the field "this.space" as parameter in 
AbstractPhysicsControl.setPhysicsSpace(PhysicsSpace space) or use the still 
available "this.space" in BetterCharacterControl.removePhysics(PhysicsSpace 
space).

Original issue reported on code.google.com by florian....@googlemail.com on 18 Mar 2013 at 1:54

GoogleCodeExporter commented 9 years ago
Thanks, this should be fixed

Original comment by normen667 on 15 Apr 2013 at 7:48