Bug 125200 Problem view: NPE after access on non existing attribute
I20060124-1115 Maybe you can consider this a bug of the extension point implementor, but when accessing an undefined attribute, an NPE is the result in the problem view: (marker.getMarker().getAttribute(markerAttribute) is null here) FieldMarkerGroup.findGroupValue(ConcreteMarker) line: 172 FieldMarkerGroup.getMapping(ConcreteMarker) line: 150 FieldMarkerGroup.compare(Object, Object) line: 201 CategorySorter.compare(Object, Object, int, boolean) line: 57 CategorySorter.compare(Viewer, Object, Object) line: 70 ViewerSorter$1.compare(Object, Object) line: 177 Arrays.mergeSort(Object[], Object[], int, int, int, Comparator) line: 1292 Arrays.mergeSort(Object[], Object[], int, int, int, Comparator) line: 1304 Arrays.mergeSort(Object[], Object[], int, int, int, Comparator) line: 1304 Arrays.mergeSort(Object[], Object[], int, int, int, Comparator) line: 1304 Arrays.mergeSort(Object[], Object[], int, int, int, Comparator) line: 1303 Arrays.sort(Object[], Comparator) line: 1233 CategorySorter(ViewerSorter).sort(Viewer, Object[]) line: 175 MarkerAdapter.buildAllMarkers(IProgressMonitor) line: 199 ProblemView(MarkerView).updateForContentsRefresh(IProgressMonitor) line: 525 MarkerView$MarkerProcessJob.run(IProgressMonitor) line: 172
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/FieldMarkerGroup.java
/*******************************************************************************
 * Copyright (c) 2006 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 ******************************************************************************/
package org.eclipse.ui.views.markers.internal;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.swt.graphics.Image;
/**
 * @since 3.2
 * 
 */
public class FieldMarkerGroup implements IField {