getObjectByName crash's if no object with name exists?

Started by Darkflame, May 16, 2010, 04:10:52 PM

Previous topic - Next topic

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.