Forum BigDB I need help with load objects from client side

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

I need help with load objects from client side

Postby Jovanovic984 » January 7th, 2014, 6:23 pm

Code: Select all
var c:Client;   
c.bigDB.load("pitanja","1", function(o:DatabaseObject):void {
                            ............
            });


I get error:
Code: Select all
TypeError: Error #1009: Cannot access a property or method of a null object reference.


Any idea what's wrong?
Thank you.
Jovanovic984
 
Posts: 13
Joined: October 16th, 2013, 8:00 am

Re: I need help with load objects from client side

Postby Henrik » January 7th, 2014, 7:49 pm

You have to call Connect or QuickConnect to get a valid Client object before you can start loading BigDB objects.
Henrik
.IO
 
Posts: 1880
Joined: January 4th, 2010, 1:53 pm

Re: I need help with load objects from client side

Postby Jovanovic984 » January 7th, 2014, 9:12 pm

I found my mistake,in handleConnect I had "client" and in load I had "c.bigDB.load". :)

I just changed that to "client.bigDB.load" and now it's OK. :)
Jovanovic984
 
Posts: 13
Joined: October 16th, 2013, 8:00 am


Return to BigDB