QuickDiff Action null pointer error openning an editor [message #320067] |
Tue, 11 September 2007 11:31  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
>
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.45832 seconds