Export to GitHub

dphibernate - issue #9

Create a new object on the flex side


Posted on Apr 16, 2008 by Swift Rabbit

What steps will reproduce the problem? 1. Create a new object 2. Set some variables inside 3. try to read one of the variables

getProperty(obj:IHibernateProxy, property:String, value:): { var ro:IHibernateRPC; var entry:HibernateManagedEntry = hibernateDictionary[ obj ] as HibernateManagedEntry
ro = entry.ro; -- Throws --> TypeError: Error #1009: Cannot access a property or method of a null object reference.

Comment #1

Posted on Apr 16, 2008 by Swift Rabbit

PS. for now i've changed the line to "if (entry!= null) ro = entry.ro;" and looks like it works. But i didn't have time to analize the whole code so far.

Comment #2

Posted on Apr 16, 2008 by Helpful Monkey

(No comment was entered for this change.)

Comment #3

Posted on Apr 20, 2008 by Happy Dog

Fair enough. I will verify the change

Comment #4

Posted on Jun 23, 2008 by Helpful Wombat

Hi,

I'd got the same issue, the change l.152 corrected it. But later, I'd an error on l.160 or l.169 from the call of "areServerCallsEnabled( ro )". Because "ro" was null, "serverCallsEnanabled[ ro ] != false" (l.49) was always true !!! So, here a solution :

public static function areServerCallsEnabled( ro:IHibernateRPC ):Boolean { return ro ? ( serverCallsEnanabled[ ro ] != false ) : false; }

Thanks for the framework ;)

Comment #5

Posted on Mar 15, 2011 by Swift Giraffe

Closing this, it's no longer how we manage RO's.

Status: Stale

Labels:
Type-Defect Priority-Medium