Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 15:31 Go to next message
Waldyn Benbenek is currently offline Waldyn BenbenekFriend
Messages: 24
Registered: July 2009
Junior Member
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 16:45 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
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: Sun Dec 22 03:30:04 GMT 2024

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

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

Back to the top