Project: Eclipse_Platform_UI
Bug 125200 Problem view: NPE after access on non existing attribute
Reported: 2006-01-25 12:02:51 | Status: verified fixed

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

Files changed in fix:
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/FieldMarkerGroup.java