Author Topic: NullPointerException @ Object3D.transformVertices  (Read 1349 times)

Offline raft

  • quad
  • ******
  • Posts: 1972
    • View Profile
    • http://www.aptalkarga.com
NullPointerException @ Object3D.transformVertices
« 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)

Offline raft

  • quad
  • ******
  • Posts: 1972
    • View Profile
    • http://www.aptalkarga.com
Re: NullPointerException @ Object3D.transformVertices
« Reply #1 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)

Offline raft

  • quad
  • ******
  • Posts: 1972
    • View Profile
    • http://www.aptalkarga.com
Re: NullPointerException @ Object3D.transformVertices
« Reply #2 on: July 05, 2010, 12:11:59 am »
found the cause: the object is added to world two times

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11776
    • View Profile
    • http://www.jpct.net
Re: NullPointerException @ Object3D.transformVertices
« Reply #3 on: July 05, 2010, 07:03:17 am »
That should fail in the first place...i'll check it out.