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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to