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

This email sent to [EMAIL PROTECTED]


_______________________________________________
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