www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: raft on July 04, 2010, 11:40:07 pm

Title: NullPointerException @ Object3D.transformVertices
Post by: raft on July 04, 2010, 11:40:07 pm
this happens after an Object3D is removed from the world. if i also make the object invisible, no exception is thrown. no big deal indeed.
happens on both versions (desktop and AE)

Code: [Select]
Exception in thread "main" java.lang.NullPointerException
at com.threed.jpct.Object3D.transformVertices(Unknown Source)
at com.threed.jpct.World.renderScene(Unknown Source)
Title: Re: NullPointerException @ Object3D.transformVertices
Post by: raft on July 04, 2010, 11:44:50 pm
android stack trace. line numbers may help

Code: [Select]
java.lang.NullPointerException
  at com.threed.jpct.Object3D.transformVertices(Object3D.java:5459)
  at com.threed.jpct.World.renderScene(World.java:1035)
Title: Re: NullPointerException @ Object3D.transformVertices
Post by: raft on July 05, 2010, 12:11:59 am
found the cause: the object is added to world two times
Title: Re: NullPointerException @ Object3D.transformVertices
Post by: EgonOlsen on July 05, 2010, 07:03:17 am
That should fail in the first place...i'll check it out.