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
* Returns the sorted and filtered set of children of the given element.
 * The resulting array must not be modified,
 * as it may come directly from the model's internal state.
 *
 * @param parent the parent element
 * @return a sorted and filtered array of child elements
 */
protected Object[] getSortedChildren(Object parent) {
	Object[] result = getFilteredChildren(parent);
	if (sorter != null) {
		
		result = (Object[]) result.clone();
		sorter.sort(this, result);
	}
	return result;
}
/**
 * Returns this viewer's sorter, or <code>null</code> if it does not have one.
 *
 * @return a viewer sorter, or <code>null</code> if none
 */
public ViewerSorter getSorter() {
	return sorter;
}
/**
 * Handles a double-click select event from the widget.
 * <p>
 * This method is internal to the framework; subclassers should not call
 * this method.
 * </p>