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
/*******************************************************************************
 * Copyright (c) 2000, 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 org.eclipse.jface.resource.DeviceResourceException;
import org.eclipse.jface.resource.JFaceResources;
import org.eclipse.swt.graphics.Image;
import org.eclipse.ui.internal.ide.IDEInternalWorkbenchImages;
/**
 * The FieldSeverityAndMessage is the field that
 * displays severities and messages.
 * 
 */
public class FieldSeverityAndMessage extends FieldMessage {