Bug 310908 [Markers] NPE thrown by markers job
I20100426-0852 I had one editor open in my window. It was maximized and opened on an external file. When I closed it, this NPE suddenly appeared. java.lang.NullPointerException at org.eclipse.ui.internal.views.markers.MarkerFieldFilterGroup.loadSettings(MarkerFieldFilterGroup.java:448) at org.eclipse.ui.internal.views.markers.MarkerContentGenerator.loadGroupWithID(MarkerContentGenerator.java:521) at org.eclipse.ui.internal.views.markers.MarkerContentGenerator.loadFilterSettings(MarkerContentGenerator.java:449) at org.eclipse.ui.internal.views.markers.MarkerContentGenerator.loadFiltersFrom(MarkerContentGenerator.java:467) at org.eclipse.ui.internal.views.markers.MarkerContentGenerator.loadFiltersPreference(MarkerContentGenerator.java:479) at org.eclipse.ui.internal.views.markers.MarkerContentGenerator.getAllFilters(MarkerContentGenerator.java:293) at org.eclipse.ui.internal.views.markers.MarkerContentGenerator.getEnabledFilters(MarkerContentGenerator.java:307) at org.eclipse.ui.internal.views.markers.MarkerContentGenerator.getResourcesForBuild(MarkerContentGenerator.java:904) at org.eclipse.ui.internal.views.markers.MarkerContentGenerator.gatherMarkers(MarkerContentGenerator.java:1004) at org.eclipse.ui.internal.views.markers.MarkerContentGenerator.generateMarkerEntries(MarkerContentGenerator.java:991) at org.eclipse.ui.internal.views.markers.MarkerUpdateJob.clean(MarkerUpdateJob.java:117) at org.eclipse.ui.internal.views.markers.MarkerUpdateJob.buildMarkers(MarkerUpdateJob.java:77) at org.eclipse.ui.internal.views.markers.MarkerUpdateJob.run(MarkerUpdateJob.java:57) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerFieldFilterGroup.java
import org.eclipse.ui.IWorkbenchPreferenceConstants;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.IWorkingSet;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.internal.AggregateWorkingSet;
import org.eclipse.ui.internal.ide.IDEWorkbenchPlugin;
import org.eclipse.ui.internal.ide.Policy;
import org.eclipse.ui.internal.ide.StatusUtil;
import org.eclipse.ui.statushandlers.StatusManager;
import org.eclipse.ui.views.markers.FiltersContributionParameters;
import org.eclipse.ui.views.markers.MarkerField;
import org.eclipse.ui.views.markers.MarkerFieldFilter;
import org.eclipse.ui.views.markers.internal.MarkerFilter;
import org.eclipse.ui.views.markers.internal.MarkerSupportRegistry;
import org.eclipse.ui.views.markers.internal.MarkerType;
/**
 * MarkerFieldFilterGroup is the representation of a grouping of marker filters.
 * 
 * @since 3.4
 * 
 */
class MarkerFieldFilterGroup {
	private static final String ATTRIBUTE_ON_ANY_IN_SAME_CONTAINER = "ON_ANY_IN_SAME_CONTAINER";
	private static final String ATTRIBUTE_ON_SELECTED_AND_CHILDREN = "ON_SELECTED_AND_CHILDREN";
	private static final String ATTRIBUTE_ON_SELECTED_ONLY = "ON_SELECTED_ONLY"; 
	/**
	 * The attribute values for the scope
	 * 
	 */
	private static final String ATTRIBUTE_SCOPE = "scope";