Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 317425 - [JFace] StatusLineManager: NPE if statusline not created
Summary: [JFace] StatusLineManager: NPE if statusline not created
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.6   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-21 08:16 EDT by Aurelien Pupier CLA
Modified: 2022-01-19 11:56 EST (History)
1 user (show)

See Also:


Attachments
Stacktrace (3.99 KB, text/plain)
2010-06-21 08:17 EDT, Aurelien Pupier CLA
no flags Details
proposed patch (3.52 KB, text/plain)
2010-06-21 08:40 EDT, Aurelien Pupier CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.