Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 317425

Summary: [JFace] StatusLineManager: NPE if statusline not created
Product: [Eclipse Project] Platform Reporter: Aurelien Pupier <apupier>
Component: UIAssignee: Platform UI Triaged <platform-ui-triaged>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: remy.suen
Version: 3.6   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: stalebug
Attachments:
Description Flags
Stacktrace
none
proposed patch none

Description Aurelien Pupier CLA 2010-06-21 08:16:04 EDT
Build Identifier: 20100527-0614

This bug is directly related to https://bugs.eclipse.org/bugs/show_bug.cgi?id=274554

It happens not only in setCanceled()

I encountered the issue in beginTask()

I think that it would be better to check if statusLineExist everywhere processDelegate is used.

Reproducible: Always
Comment 1 Aurelien Pupier CLA 2010-06-21 08:17:16 EDT
Created attachment 172319 [details]
Stacktrace
Comment 2 Aurelien Pupier CLA 2010-06-21 08:40:52 EDT
Created attachment 172324 [details]
proposed patch

check everywhere that statusline exist before accessing processDelegate
better than look if processDelegate is null?

I try to handle the better I can "cancel" operation by keeping an attribute. Advice for the best way are welcome.
Comment 3 Remy Suen CLA 2010-06-21 08:42:55 EDT
Aurelien, do you know why the status line is not there?
Comment 4 Aurelien Pupier CLA 2010-06-21 08:46:28 EDT
(In reply to comment #3)
> Aurelien, do you know why the status line is not there?

getWindowConfigurer().createStatusLineControl(shell) is *not* called in
WorkbenchWindowAdvisor.createWindowContents().

because we would like to remove the statusline and gain some pixels.
Comment 5 Eclipse Webmaster CLA 2019-09-06 16:07:10 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.
Comment 6 Eclipse Genie CLA 2022-01-19 11:56:14 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.