Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 161464 - Workspace.run reports null task name in beginTask
Summary: Workspace.run reports null task name in beginTask
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.3 M3   Edit
Assignee: John Arthorne CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-18 15:34 EDT by Nick Edgar CLA
Modified: 2006-10-24 16:09 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Edgar CLA 2006-10-18 15:34:28 EDT
3.2

Noticed that Workspace.run uses beginTask(null, ...), which is contrary to the spec of IProgressMonitor.

Saw this while tracking down an NPE in org.eclipse.jface.action.StatusLine.subTask due to a null subtask name.  Recommend checking all senders of beginTask, setTaskName and subTask in core.  

Might want to change StatusLine to accept nulls for these as well (it already does for some).
Comment 1 Nick Edgar CLA 2006-10-18 15:39:59 EDT
Backlink: Jazz work item #10483.
Comment 2 John Arthorne CLA 2006-10-18 16:38:07 EDT
A null task name is pretty common as far as I know, but I'll fix the core instances.
Comment 3 John Arthorne CLA 2006-10-18 16:58:56 EDT
Fix released.
Comment 4 Nick Edgar CLA 2006-10-24 16:09:33 EDT
Filed bug 162140 for the UI aspect.