• 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: Eclipse or WOLips java.lang.NullPointerException
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Eclipse or WOLips java.lang.NullPointerException


  • Subject: Re: Eclipse or WOLips java.lang.NullPointerException
  • From: Mike Schrag <email@hidden>
  • Date: Fri, 15 Feb 2008 22:28:54 -0500

Fixed.

Jeez ... That took a good 45 minutes of frantically clicking to get this to happen in the debugger. Fortunately once it happens once, it continues to happen. I actually think it's related somehow to specific files and it seems somehow related to collapsing code areas, but I'm not entirely sure how. I didn't need to nail down the exact triggering events, though, because the root cause of the NPE became pretty obvious once I got it breakpointed.

It turns that one section of code was expecting an editor to be of a certain interface, and the TemplateEditor (the HTML part of the ComponentEditor) didn't implement the particular interface, which caused it to return a null, which triggered an NPE later down inside of Eclipse code (confusingly, all our code was out of the stack by the time the NPE itself occurred). TemplateEditor now provides proxies for about six additional common Eclipse editor interfaces just-in-case, and I was able to get the previously-would-have-NPE'd error to happen again with this fix in and it seems to work correctly now.

ms

On Feb 15, 2008, at 2:17 PM, Andrew Lindesay wrote:

Hello Edgar;

I also get the same thing switching between java and template, but cannot see any pattern to it. I guess I ought to update to the latest build and write up a bug if it continues...

15/02/08 3:33:16 PM [0x0-0x2d02d].org.eclipse.eclipse[256] java.lang.NullPointerException
15/02/08 3:33:16 PM [0x0-0x2d02d].org.eclipse.eclipse[256] at org .eclipse .ui .texteditor .SelectMarkerRulerAction .getAnnotationModel(SelectMarkerRulerAction.java:262)
15/02/08 3:33:16 PM [0x0-0x2d02d].org.eclipse.eclipse[256] at org .eclipse .jdt .internal .ui .javaeditor .JavaSelectAnnotationRulerAction .findJavaAnnotation(JavaSelectAnnotationRulerAction.java:128)
15/02/08 3:33:16 PM [0x0-0x2d02d].org.eclipse.eclipse[256] at org .eclipse .jdt .internal .ui .javaeditor .JavaSelectAnnotationRulerAction .update(JavaSelectAnnotationRulerAction.java:104)
15/02/08 3:33:16 PM [0x0-0x2d02d].org.eclipse.eclipse[256] at org .eclipse .ui .texteditor .AbstractRulerActionDelegate.update(AbstractRulerActionDelegate.java: 133)
15/02/08 3:33:16 PM [0x0-0x2d02d].org.eclipse.eclipse[256] at org .eclipse .ui .texteditor .AbstractRulerActionDelegate .setActiveEditor(AbstractRulerActionDelegate.java:90)
15/02/08 3:33:16 PM [0x0-0x2d02d].org.eclipse.eclipse[256] at org .eclipse .ui .internal .handlers .ActionDelegateHandlerProxy .updateDelegate(ActionDelegateHandlerProxy.java:292)
15/02/08 3:33:16 PM [0x0-0x2d02d].org.eclipse.eclipse[256] at org .eclipse .ui .internal .handlers .ActionDelegateHandlerProxy .isEnabled(ActionDelegateHandlerProxy.java:467)
15/02/08 3:33:16 PM [0x0-0x2d02d].org.eclipse.eclipse[256] at org .eclipse .ui .internal .handlers .ActionDelegateHandlerProxy .isEnabled(ActionDelegateHandlerProxy.java:435)
15/02/08 3:33:16 PM [0x0-0x2d02d].org.eclipse.eclipse[256] at org.eclipse.core.commands.Command.isEnabled(Command.java:831)
15/02/08 3:33:16 PM [0x0-0x2d02d].org.eclipse.eclipse[256] at org.eclipse.core.commands.Command.setHandler(Command.java:938)
15/02/08 3:33:16 PM [0x0-0x2d02d].org.eclipse.eclipse[256] at org .eclipse .ui .internal .handlers.HandlerAuthority.updateCommand(HandlerAuthority.java:535)


cheers.

I'm having the weird behaviour of Eclipse/WOLips that it sometimes throws a java.lang.NullPointException when I change the selected window to be a wod-file.

___ Andrew Lindesay technology : www.lindesay.co.nz business : www.silvereye.co.nz



_______________________________________________
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: Eclipse or WOLips java.lang.NullPointerException
      • From: Andrew Lindesay <email@hidden>
References: 
 >Eclipse or WOLips java.lang.NullPointerException (From: Edgar Klein <email@hidden>)
 >Re: Eclipse or WOLips java.lang.NullPointerException (From: Andrew Lindesay <email@hidden>)

  • Prev by Date: WebObjects 5.4.1 and NPE when registering WebServices classes
  • Next by Date: Re: Eclipse or WOLips java.lang.NullPointerException
  • Previous by thread: Re: Eclipse or WOLips java.lang.NullPointerException
  • Next by thread: Re: Eclipse or WOLips java.lang.NullPointerException
  • Index(es):
    • Date
    • Thread