Bug 15844 [Exception Handling] SelectionChange events and NPE
Build 20020508 Due to new global actions there are now more objects listening to selection changes send out by a JFace viewer. We now had the case that one of the listener generated a NPE. As a result all listeners registered after that one didn't receive the selection change event. StructuredViewers should be more fault tolorant to exceptions when informing listeners.
bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/LabelProvider.java
public LabelProvider() {
}
/* (non-Javadoc)
 * Method declared on IBaseLabelProvider.
 */
public void addListener(ILabelProviderListener listener) {
	listeners.add(listener);
}
/**
 * The <code>LabelProvider</code> implementation of this 
 * <code>IBaseLabelProvider</code> method does nothing. Subclasses may extend.
 */
public void dispose() {
}
/**
 * Fires a label provider changed event to all registered listeners
 * Only listeners registered at the time this method is called are notified.
 *
 * @param event a label provider changed event
 *
 * @see ILabelProviderListener#labelProviderChanged
 */
protected void fireLabelProviderChanged(LabelProviderChangedEvent event) {
	Object[] listeners = this.listeners.getListeners();
	for (int i = 0; i < listeners.length; ++i) {
		((ILabelProviderListener) listeners[i]).labelProviderChanged(event);
	}
}
/**
 * The <code>LabelProvider</code> implementation of this