• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Help with NPE in EOCustomObject.willReadRelationship()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Help with NPE in EOCustomObject.willReadRelationship() (From: Peter Vandoros <email@hidden>)
 >Re: Help with NPE in EOCustomObject.willReadRelationship() (From: Chuck Hill <email@hidden>)
 >Re: Help with NPE in EOCustomObject.willReadRelationship() (From: Peter Vandoros <email@hidden>)
 >Re: Help with NPE in EOCustomObject.willReadRelationship() (From: Chuck Hill <email@hidden>)
 >Re: Help with NPE in EOCustomObject.willReadRelationship() (From: Peter Vandoros <email@hidden>)

  • Prev by Date: Problem loading EOModel in a unit test on Windows (NSBundle fails to load .jar bundles)
  • Next by Date: Re: Problem loading EOModel in a unit test on Windows (NSBundle fails to load .jar bundles)
  • Previous by thread: Re: Help with NPE in EOCustomObject.willReadRelationship()
  • Next by thread: Problem loading EOModel in a unit test on Windows (NSBundle fails to load .jar bundles)
  • Index(es):
    • Date
    • Thread