Author Topic: getObjectByName crash's if no object with name exists?  (Read 3891 times)

Offline Darkflame

  • int
  • **
  • Posts: 55
    • View Profile
getObjectByName crash's if no object with name exists?
« 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.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: getObjectByName crash's if no object with name exists?
« Reply #1 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.