• 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: Lost of Object?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Lost of Object?


  • Subject: Re: Lost of Object?
  • From: Chuck Hill <email@hidden>
  • Date: Tue, 28 Feb 2006 17:39:40 -0800


On Feb 28, 2006, at 5:17 PM, Jim Wong wrote:

Hi:

what is this error?

com.webobjects.eocontrol._EOCheapCopyMutableArray[300f65]

That is not an error. That is an array fault.


i have a flattened relationship and when i try to do "return opportunity.company().containsObject(companyItem);" it would give a java.lang.NullPointerException error.

Which means that either opportunity == null or opportunity.company() == null. My guess would be the latter. Using an object that you have not yet inserted into an editing context? Override awakeFromInsertion or awakeFromFetch and not called super?



so I displayed companyItem and I get the EOCheapCopyMutableArray thingy.

Well, something is wrong in your code there. opportunity.company() might be one of those.



companyItem is a COMPANY object while opportunity.company() is to return a NSMutableArray.


Well, NSArray actually, or any one of its many subclasses.


Chuck


--
Coming in 2006 - an introduction to web applications using WebObjects and Xcode http://www.global-village.net/wointro


Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects




_______________________________________________ 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
  • Follow-Ups:
    • Re: Lost of Object?
      • From: Mark Morris <email@hidden>
References: 
 >Lost of Object? (From: Jim Wong <email@hidden>)

  • Prev by Date: Lost of Object?
  • Next by Date: Re: Lost of Object?
  • Previous by thread: Lost of Object?
  • Next by thread: Re: Lost of Object?
  • Index(es):
    • Date
    • Thread