• 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: NPE in Wonder code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NPE in Wonder code


  • Subject: Re: NPE in Wonder code
  • From: Chuck Hill <email@hidden>
  • Date: Thu, 05 Mar 2015 17:44:11 +0000
  • Thread-topic: NPE in Wonder code

It might happen if you have a temporary GID. Are you using parent and child editing contexts?


On 2015-03-03, 2:47 PM, "OC" wrote:

Hello there,

in my latest log, there is (thrice) a NPE at

  at er.extensions.eof.ERXDatabaseContextDelegate.batchFetchToOneFault(ERXDatabaseContextDelegate.java:714)

Looks like it's here:

===
private synchronized boolean batchFetchToOneFault(EODatabaseContext dbc, AutoBatchFaultingEnterpriseObject eo) {
if(fetchingToOne.canEnter(dbc)) {
try {
EOGlobalID sourceGID = eo.batchFaultingSourceGlobalID();
String key = eo.batchFaultingRelationshipName();
if(sourceGID != null && key != null) {
EOEditingContext ec = eo.editingContext();
AutoBatchFaultingEnterpriseObject source = (AutoBatchFaultingEnterpriseObject) ec.faultForGlobalID(sourceGID, ec);
EOEntityClassDescription cd = (EOEntityClassDescription)source.classDescription(); // 714
...
===

Looks like 'source' must have been null. Can faultForGlobalID return a null?!? When would that happen?

Thanks,
OC


_______________________________________________
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
 _______________________________________________
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: NPE in Wonder code
      • From: OC <email@hidden>
References: 
 >NPE in Wonder code (From: OC <email@hidden>)

  • Prev by Date: Re: blocking other instances from activity
  • Next by Date: Re: NPE in Wonder code
  • Previous by thread: NPE in Wonder code
  • Next by thread: Re: NPE in Wonder code
  • Index(es):
    • Date
    • Thread