www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: Darkflame on May 16, 2010, 04:10:52 pm

Title: getObjectByName crash's if no object with name exists?
Post by: Darkflame on May 16, 2010, 04:10:52 pm
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.
Title: Re: getObjectByName crash's if no object with name exists?
Post by: EgonOlsen on May 16, 2010, 11:07:42 pm
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.