Bug 178394 NPE in marker adapter buildAll markers
This shows up occasionally in the test suite logs. Probably happening during shutdown !STACK 0 java.lang.NullPointerException at org.eclipse.ui.views.markers.internal.MarkerAdapter.buildAllMarkers(MarkerAdapter.java:262) at org.eclipse.ui.views.markers.internal.MarkerView.updateForContentsRefresh(MarkerView.java:570) at org.eclipse.ui.views.markers.internal.MarkerView$MarkerProcessJob.run(MarkerView.java:151) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerAdapter.java
return;
				view.refreshMarkerCounts(monitor);
			} catch (CoreException e) {
				Util.log(e);
				newMarkers = new MarkerList();
				return;
			}
			if (monitor.isCanceled())
				return;
			ViewerComparator sorter = view.getViewer().getComparator();
			if (markerLimit == -1 || isShowingHierarchy()) {
				sorter.sort(view.getViewer(), newMarkers.toArray());
			} else {
				monitor.subTask(MarkerMessages.MarkerView_18);
				SubProgressMonitor mon = new SubProgressMonitor(monitor, 40);
				newMarkers = SortUtil.getFirst(newMarkers, (Comparator) sorter,
						markerLimit, mon);
				if (monitor.isCanceled()) {
					return;
				}
				sorter.sort(view.getViewer(), newMarkers.toArray());
			}
			if (newMarkers.getSize() == 0) {
				categories = new MarkerCategory[0];
				lastMarkers = newMarkers;
				monitor.done();
				return;
			}
			monitor.subTask(MarkerMessages.MarkerView_queueing_updates);
			if (monitor.isCanceled())