Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Search
Login
Register
www.jpct.net
»
jPCT-AE - a 3d engine for Android
»
Support
»
getObjectByName crash's if no object with name exists?
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: getObjectByName crash's if no object with name exists? (Read 4140 times)
Darkflame
int
Posts: 55
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.
Logged
EgonOlsen
Administrator
quad
Posts: 12297
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.
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
www.jpct.net
»
jPCT-AE - a 3d engine for Android
»
Support
»
getObjectByName crash's if no object with name exists?