Bug 142802 [Markers] FieldSeverityAndMessage should protect against uninitialzed images
RC4 try { return JFaceResources.getResources().createImage( IDEInternalWorkbenchImages.getImageDescriptor( IDEInternalWorkbenchImages.IMG_ETOOL_PROBLEM_CATEGORY)); } catch (DeviceResourceException e) { return null; } should be try { return JFaceResources.getResources().createImageWithDefault( IDEInternalWorkbenchImages.getImageDescriptor( IDEInternalWorkbenchImages.IMG_ETOOL_PROBLEM_CATEGORY)); } catch (DeviceResourceException e) { return null; } to prevent NPEs if the IDEWorkbenchAdvisor is not initialized.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/FieldSeverityAndMessage.java
* 
	 * @see org.eclipse.ui.views.markers.internal.IField#compare(java.lang.Object,
	 *      java.lang.Object)
	 */
	public int compare(Object obj1, Object obj2) {
		if (obj1 == null || obj2 == null || !(obj1 instanceof ProblemMarker)
				|| !(obj2 instanceof ProblemMarker)) {
			return 0;
		}
		
		ProblemMarker marker1 = (ProblemMarker) obj1;
		ProblemMarker marker2 = (ProblemMarker) obj2;
		int severity1 = marker1.getSeverity();
		int severity2 = marker2.getSeverity();
		if(severity1 == severity2)
			return marker1.getDescriptionKey().compareTo(
					marker2.getDescriptionKey());
		return severity2 - severity1;
	}
	
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.ui.views.markers.internal.IField#getColumnHeaderImage()
	 */
	public Image getColumnHeaderImage() {
		return getImage(FieldDone.DESCRIPTION_IMAGE_PATH);
	}
}