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
else
				marker.setGroup(value);
		}
		return (AttributeMapping) marker.getGroup();
	}
	/**
	 * Find the group value. If it cannot be found in an attribute mapping then
	 * return null;
	 * 
	 * @param marker
	 * @return String or <code>null</code>
	 */
	private AttributeMapping findGroupValue(ConcreteMarker marker) {
		if (types.contains(marker.getType())) {
			String value;
			try {
				value = (marker.getMarker().getAttribute(markerAttribute))
						.toString();
			} catch (CoreException e) {
				return null;
			}
			if (valueMapping.containsKey(value))
				return (AttributeMapping) valueMapping.get(value);
		}
		return null;
	} /*
		 * (non-Javadoc)
		 * 
		 * @see org.eclipse.ui.views.markers.internal.IField#getImage(java.lang.Object)
		 */