r5488 broke LightList.sort/Geometry

Hello.



  It seems like the r5488 broke something.



I'm getting this exception:

SEVERE Application 3:21:09 PM Uncaught exception thrown in Thread[LWJGL Renderer Thread,5,main]

java.lang.NullPointerException

at com.jme3.light.PointLight.computeLastDistance(PointLight.java:25)

at com.jme3.light.LightList.sort(LightList.java:170)

at com.jme3.scene.Geometry.updateWorldTransforms(Geometry.java:177)

at com.jme3.scene.Spatial.updateGeometricState(Spatial.java:541)

at com.jme3.scene.Node.updateGeometricState(Node.java:185)

at com.jme3.bullet.nodes.PhysicsNode.updateGeometricState(PhysicsNode.java:190)

at com.jme3.scene.Node.updateGeometricState(Node.java:185)

at com.jme3.app.SimpleBulletApplication.update(SimpleBulletApplication.java:275)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.runLoop(LwjglAbstractDisplay.java:112)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:162)

at java.lang.Thread.run(Thread.java:636)



I'm loading a mesh from ogre file and use Lighting material.

I have two lights: one PointLight and one DirectionalLight.



Is it a bug?



Thanks.



I see that in the clone method of LightList class the "owner" property is cleared and this code is a part of the latest svn update.

At first I was surprised that the LightList object was cloned, but then I found out that DesktopAssetManager clones all the instances for the user and keeps originals.

Why is the "owner" property getting cleared in the clone method of the LightList class? Is it an expected behavior of the JME3 assets system?

Thanks.

Thanks, I fixed it in the last revision.