Bug 134190 [JFace] NPE in StatusLine class
In class org.eclipse.jface.action.StatusLine, method SubTask(String name) NPE. StatusLine.subTask(String) line: 552 StatusLineManager$1.subTask(String) line: 205 EventLoopProgressMonitor(ProgressMonitorWrapper).subTask(String) line: 154 EventLoopProgressMonitor.subTask(String) line: 171 SBModelManager.saveModelState(IProject, IProgressMonitor) line: 175 It happens if beginTask method was never called before. I think it is better to check fTaskName.
bundles/org.eclipse.jface/src/org/eclipse/jface/action/StatusLine.java
fTaskName = Util.ZERO_LENGTH_STRING;
		} else {
			fTaskName = name;
		}
		setMessage(fTaskName);
	}
	/**
	 * Notifies that the work is done; that is, either the main task is
	 * completed or the user cancelled it. Done() can be called more than once;
	 * an implementation should be prepared to handle this case.
	 */
	public void done() {
		fStartTime = 0;
		if (fProgressBar != null) {
			fProgressBar.sendRemainingWork();
			fProgressBar.done();
		}
		setMessage(null);
		hideProgress();
	}
	/**
	 * Returns the status line's progress monitor
	 * 
	 * @return {@link IProgressMonitor} the progress monitor
	 */
	public IProgressMonitor getProgressMonitor() {
		return this;
	}
	/**
	 * @private