• 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: NullPointerException
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NullPointerException


  • Subject: Re: NullPointerException
  • From: Ken Anderson <email@hidden>
  • Date: Thu, 12 Apr 2012 10:25:09 -0700

The editing context is passed in as a parameter and checked between lines 68-73.

This is line 68-73:

68 Address me = this;
69
70 if (editingContext() != editingContext) {
71   System.out.println("ec not matched");
72 me = this.localInstanceIn(editingContext);
73 }

And this is line 94-101:

94 try{
95   System.out.println(editingContext.toString());
96   me.editingContext().saveChanges();
97 } catch (Exception e){
98   System.out.println(me._primaryKey);
99   System.out.println(editingContext.objectForGlobalID(me.__globalID()).valueForKey(ADDRESS1_KEY));
100   System.out.println(e.getCause().toString());
101 }

Ken Anderson
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
References: 
 >NullPointerException (From: Ken Anderson <email@hidden>)

  • Prev by Date: NullPointerException
  • Next by Date: Re: NullPointerException
  • Previous by thread: NullPointerException
  • Next by thread: Re: NullPointerException
  • Index(es):
    • Date
    • Thread