Bug 208791 [Markers] NPE in ExtendedMarkersView
org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException) at org.eclipse.swt.SWT.error(SWT.java:3706) at org.eclipse.swt.SWT.error(SWT.java:3624) [... snip ...] Caused by: java.lang.NullPointerException at org.eclipse.ui.internal.provisional.views.markers.ExtendedMarkersView$10.runInUIThread(ExtendedMarkersView.java:896) at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:94) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:130) ... 52 more This brought down testResourceMappings(), but you just need to check getCategories() can return null. PW
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/provisional/views/markers/ExtendedMarkersView.java
/**
	 * Return the listener that updates sort values on selection.
	 * 
	 * @return SelectionListener
	 */
	private SelectionListener getHeaderListener() {
		return new SelectionAdapter() {
			/**
			 * Handles the case of user selecting the header area.
			 */
			public void widgetSelected(SelectionEvent e) {
				final TreeColumn column = (TreeColumn) e.widget;
				final MarkerField field = (MarkerField) column
						.getData(MARKER_FIELD);
				builder.getGenerator().setPrimarySortField(field);
				IWorkbenchSiteProgressService service = (IWorkbenchSiteProgressService) getViewSite()
						.getAdapter(IWorkbenchSiteProgressService.class);
				builder.refreshContents(service);
				updateDirectionIndicator(column, field);
				viewer.refresh();
			}
		};
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.ui.part.WorkbenchPart#createPartControl(org.eclipse.swt.widgets.Composite)
	 */
	public void createPartControl(Composite parent) {
		parent.setLayout(new FillLayout());