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
import org.eclipse.jface.viewers.TableLayout;
import org.eclipse.jface.viewers.ViewerSorter;
import org.eclipse.osgi.util.NLS;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.activities.ActivityManagerEvent;
import org.eclipse.ui.activities.IActivityManagerListener;
import org.eclipse.ui.internal.ide.IDEInternalPreferences;
import org.eclipse.ui.internal.ide.IDEWorkbenchPlugin;
import org.eclipse.ui.plugin.AbstractUIPlugin;
/**
 * The ProblemView is the view that displays problem markers.
 * 
 */
public class ProblemView extends MarkerView {
	private final static String[] ROOT_TYPES = { IMarker.PROBLEM };
	private final static String TAG_DIALOG_SECTION = "org.eclipse.ui.views.problem"; 
	private ActionResolveMarker resolveMarkerAction;
	private IActivityManagerListener activityManagerListener;
	private IField severity = new FieldSeverity();
	private IField category = new FieldCategory();
	private IField folder = new FieldFolder();
	private IField resource = new FieldResource();
	private IField message = new FieldMessage();
	private IField lineNumber = new FieldLineNumber();
	private IField creationTime = new FieldCreationTime();
	
	
	private static IField id = new FieldId();
	private class GroupingAction extends Action {