I get this exception whilst trying to add a new Body to physicsWorld during a collision event.
Code:
Thu Mar 03 21:38:09 GMT 2011 ERROR:null
java.lang.NullPointerException
at org.newdawn.fizzy.PrimitiveShape.createInBody(PrimitiveShape.java:46)
at org.newdawn.fizzy.Body.addToWorld(Body.java:250)
at org.newdawn.fizzy.World.add(World.java:110)
at com.tankz.systems.PhysicsSystem.added(PhysicsSystem.java:68)
at com.artemis.EntitySystem.change(EntitySystem.java:48)
at com.artemis.EntityManager.refresh(EntityManager.java:73)
at com.artemis.Entity.insert(Entity.java:83)
at com.tankz.systems.PhysicsSystem.collided(PhysicsSystem.java:108)
at org.newdawn.fizzy.World.fireCollision(World.java:193)