Bug 124138 NPE in FieldCategory
20060116 Not sure how I got this but I have no categories enabled java.lang.NullPointerException at org.eclipse.ui.views.markers.internal.FieldCategory.compare(FieldCategory.java:87) at org.eclipse.ui.views.markers.internal.TableSorter.compare(TableSorter.java:223) at org.eclipse.ui.views.markers.internal.TableSorter.compare(TableSorter.java:225) at org.eclipse.ui.views.markers.internal.CategorySorter.compare(CategorySorter.java:63) at org.eclipse.ui.views.markers.internal.CategorySorter.compare(CategorySorter.java:96) at org.eclipse.ui.views.markers.internal.SortUtil.partitionHelper(SortUtil.java:114) at org.eclipse.ui.views.markers.internal.SortUtil.getFirst(SortUtil.java:74) at org.eclipse.ui.views.markers.internal.SortUtil.getFirst(SortUtil.java:43) at org.eclipse.ui.views.markers.internal.MarkerAdapter.buildAllMarkers(MarkerAdapter.java:215) at org.eclipse.ui.views.markers.internal.MarkerView.updateForContentsRefresh(MarkerView.java:515) at org.eclipse.ui.views.markers.internal.MarkerView$MarkerProcessJob.run(MarkerView.java:172) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ProblemView.java
.getRegisteredFilters();
		Iterator iterator = declaredFilters.iterator();
		MarkerFilter[] allFilters = new MarkerFilter[userFilters.length
				+ declaredFilters.size()];
		System.arraycopy(userFilters, 0, allFilters, 0, userFilters.length);
		int index = userFilters.length;
		while (iterator.hasNext()) {
			allFilters[index] = (MarkerFilter) iterator.next();
			index++;
		}
		return allFilters;
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.ui.views.markers.internal.MarkerView#addDropDownContributions(org.eclipse.jface.action.IMenuManager)
	 */
	void addDropDownContributions(IMenuManager menu) {
		MenuManager groupByMenu = new MenuManager(MarkerMessages.ProblemView_GroupByMenu);
		groupByMenu.add(new GroupingAction(MarkerMessages.ProblemView_Severity, severity, this));
		groupByMenu.add(new GroupingAction(MarkerMessages.ProblemView_Category, category, this));
		
		Iterator definedGroups = MarkerSupportRegistry.getInstance().getMarkerGroups().iterator();
		
		while(definedGroups.hasNext()){
			FieldMarkerGroup group = (FieldMarkerGroup) definedGroups.next();
			groupByMenu.add(new GroupingAction(group.getDescription(),group,this));
		}
		
		groupByMenu.add(new GroupingAction(MarkerMessages.ProblemView_None, null, this));