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
totalCnt++;
				}
				maxHeight = Math.max(maxHeight, e.y);
			}
			if (totalCnt > 0) {
				totalWidth += (totalCnt - 1) * GAP;
			}
			if (totalWidth <= 0) {
				totalWidth = maxHeight * 4;
			}
			return new Point(totalWidth, maxHeight);
		}
		public void layout(Composite composite, boolean flushCache) {
			if (composite == null) {
				return;
			}
			
			
			
			
			
			fMessageLabel.moveAbove(null);
			fToolBar.moveBelow(fMessageLabel);
			fProgressBarComposite.moveBelow(fToolBar);
			Rectangle rect = composite.getClientArea();
			Control[] children = composite.getChildren();
			int count = children.length;
			int ws[] = new int[count];
			int h = rect.height;
			int totalWidth = -GAP;