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/StructuredViewer.java
* </p>
 *
 * @return the root element, or <code>null</code> if none
 */
protected Object getRoot() {
	return getInput();
}
/**
 * The <code>StructuredViewer</code> implementation of this method
 * returns the result as a <code>StructuredSelection</code>.
 * <p>
 * Subclasses do not typically override this method, but implement
 * <code>getSelectionFromWidget(List)</code> instead.
 * <p>
 */
public ISelection getSelection() {
	Control control = getControl();
	if (control == null || control.isDisposed()) {
		return StructuredSelection.EMPTY;
	}
	List list = getSelectionFromWidget();
	return new StructuredSelection(list);
}
/**
 * Retrieves the selection, as a <code>List</code>, from the underlying widget.
 *
 * @return the list of selected elements
 */
protected abstract List getSelectionFromWidget();
/**