Forum BigDB Loading Objects bug

Discussion and help relating to the PlayerIO database solution, BigDB.

Loading Objects bug

Postby default0 » October 23rd, 2010, 3:42 pm

Hey,

I found a small error when I was experimenting a little with my game.
It appears that using client.bigDB.load("somevalidtable", "someinvalidkey", SuccessCallback, FailCallback);
Will NOT fire the FailCallback but instead throw this little nice error:
Code: Select all
TypeError: Error #1009: Der Zugriff auf eine Eigenschaft oder eine Methode eines null-Objektverweises ist nicht möglich.
    at bridge.utils::Converter$/toDatabaseObject()
    at MethodInfo-587()
    at MethodInfo-233()
    at MethodInfo-2()
    at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/flash.net:URLLoader::onComplete()


EDIT: For those who are not able to understand it (because its german), it is developers best friend: Null-Reference error ;)

After receiving this error message I tried replacing the invalid key with a valid key, and whoops everything worked just fine.
Seems there is an error on your end there (I know I can easily build around this and it does not stop me developing my game, just noticing it here ;))

Best regards
Try to play my Game: -->BlackGalaxy<--
User avatar
default0
 
Posts: 115
Joined: February 2nd, 2010, 6:46 pm
Location: Germany

Re: Loading Objects bug

Postby Benjaminsen » October 25th, 2010, 8:36 am

I will look into this asap!
Benjaminsen
.IO
 
Posts: 1444
Joined: January 12th, 2010, 11:54 am
Location: Denmark

Re: Loading Objects bug

Postby Benjaminsen » October 25th, 2010, 5:31 pm

Quick update to say that I found and fixed this bug. The fixed version will be pushed with our next release cycle.
In the future this type of request will return null to the callback method
Benjaminsen
.IO
 
Posts: 1444
Joined: January 12th, 2010, 11:54 am
Location: Denmark


Return to BigDB



cron