Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » QuickDiff Action null pointer error openning an editor
QuickDiff Action null pointer error openning an editor [message #320067] Tue, 11 September 2007 11:31 Go to next message
Eclipse UserFriend
I have inherited an old eclipse editor. It is an extension of
AbstractDecoratedTextEditor. Whenever I call the super-class's
createPartControl an error appears in the error log saying there is a null
pointer error in the creation of the QuickDiff action delegates.

When I look at the code in QuickDiffToggleAction, one of the deep next of
calls from createPartControl, I don't see how the code can work. The
initialization of the member variables sets an ITextEditor variable to null,
and then immediately uses it to construct a set of restore actions. It, of
course, takes an exception.

Is there something one is now supposed to configure to not travel this path.
It seems like broken code to me.

Waldyn
Re: QuickDiff Action null pointer error openning an editor [message #320082 is a reply to message #320067] Tue, 11 September 2007 12:45 Go to previous message
Eclipse UserFriend
Waldyn Benbenek wrote:

>I have inherited an old eclipse editor. It is an extension of
>AbstractDecoratedTextEditor. Whenever I call the super-class's
>createPartControl an error appears in the error log saying there is a null
>pointer error in the creation of the QuickDiff action delegates.
>
>When I look at the code in QuickDiffToggleAction, one of the deep next of
>calls from createPartControl, I don't see how the code can work. The
>initialization of the member variables sets an ITextEditor variable to null,
>and then immediately uses it to construct a set of restore actions. It, of
>course, takes an exception.
>
>Is there something one is now supposed to configure to not travel this path.
>It seems like broken code to me.
>
>
The Text and the Java editor use this so it's probably not broken. Look
how it's done there.

Dani

>Waldyn
>
>
>
>
Previous Topic:viewContribution to ViewParts
Next Topic:enablement and project facets?
Goto Forum:
  


Current Time: Thu Mar 13 13:53:52 EDT 2025

Powered by FUDForum. Page generated in 0.45832 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top