jPCT-AE - a 3d engine for Android > Support

getObjectByName crash's if no object with name exists?

(1/1)

Darkflame:
getObjectByName() seems to crash if it cant find the object named....shouldn't it just return null?
Its easy enough to work around this,but I thought Id mention it as it seems to be a bug.

EgonOlsen:
It shouldn't crash, it should cause an error. However, that's what the code says. What the docs say is different, so i'm changing the code to reflect the docs, i.e. return null. I'll fix this in the next update.

Navigation

[0] Message Index

Go to full version