Re: NullPointerException Problem
Re: NullPointerException Problem
- Subject: Re: NullPointerException Problem
- From: Chuck Hill <email@hidden>
- Date: Sun, 18 Jul 2004 10:54:13 -0700
My first suspicion is that the object throwing this exception is not in (is
no longer in) an EOEditingContext.
Chuck
At 08:30 PM 17/07/2004 -0400, Robert Snyder wrote:
>Hello,
>
>I have an application that collect time tracking information. The user
>can save time, based on categories he selects from a pull down menu to a
>TTRecord table. Selecting a category adds a new row to the TTRecord.
>
>Some of the categories have a relationship to specific project billing
>codes, some do not. If the category selected is one for which a billable
>budget must be selected, the UI presents the user with a new category
>row, with pulldown menus for the program and course to be billed.
>
>This was working fine, but then something happened during changes made
>elsewhere in the application and to the data model, and now only the
>first category row with a program/course relationship gets saved, while
>any other rows on the week's record get null values for the program and
>course.
>
>The following error is thrown.
>
>
>java.lang.NullPointerException
> at com.webobjects.eocontrol.EOCustom
>Object.willReadRelationship(EOCustomObject.java:1293)
> at com.webobjects.eocontrol._EOMutab
>leKnownKeyDictionary$Initializer$_Laz
>yGenericRecordBinding.valueInObject(_EOMutableKnownKeyDictionary.java:560)
> at com.webobjects.eocontrol.EOCustom
>Object.storedValueForKey(EOCustomObject.java:1736)
> at TTRecord.program(TTRecord.java:188)
>
>My guess is that there is some kind of disconnect at the EO level. Any
>suggestions?
>
>Robert
>
>
>
>____________________________________________
>
>Robert Snyder, Director
>World Campus Data Management Services
>The Pennsylvania State University
>105 Mitchell Building
>University Park PA 16802
>Phone: 814-865-0912 Fax: 814-865-4406
>E-mail: email@hidden
>URL: http://www.worldcampus.psu.edu/my.campus
>_______________________________________________
>webobjects-dev mailing list | email@hidden
>Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
>Do not post admin requests to the list. They will be ignored.
>
>
--
Chuck Hill email@hidden
Global Village Consulting Inc. http://www.global-village.net
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.