Re: Help with NPE in EOCustomObject.willReadRelationship()
Re: Help with NPE in EOCustomObject.willReadRelationship()
- Subject: Re: Help with NPE in EOCustomObject.willReadRelationship()
- From: Mike Schrag <email@hidden>
- Date: Wed, 29 Apr 2009 07:43:10 -0400
Part of the notification is the userInfo, which is a dictionary.
And dictionary.toString is implemented by calling toString on it's
keys and objects. IIRC, the objects are NSArray, and
NSArray.toString is implemented by calling toString on it's
objects. And EOCustomObject.toString() is implemented by calling
eoDescription(). So indirectly and inadvertently, you are calling
eoDescription()!
Yeah I know.... but I still believe that the toString()
implementation should check to see if the EO has been deleted/is in
an invalid state, and return some generic text like "object with
entity <entity_name> has been deleted or not yet inserted into an
EOEditingContext".
I agree ... a toString should never throw an exception .. that's kind
of BS. log a radar.
ms
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden