Project: Eclipse_Platform_UI
Bug 142802 [Markers] FieldSeverityAndMessage should protect against uninitialzed images
Reported: 2006-05-19 12:37:33 | Status: verified fixed

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.

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