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/AbstractTreeViewer.java
Object data = tis[0].getData();
		if (data != null)
			return; 
		
		
		
		
		
		
		
		for (int i = 0; i < tis.length; i++)
			tis[i].dispose();
	}
	Object d = widget.getData();
	if (d != null) {
		Object parentElement = d;
		Object[] children = getSortedChildren(parentElement);
		for (int i = 0; i < children.length; i++) {
			createTreeItem(widget, children[i], -1);
		}
	}
}
/**
 * Creates a single item for the given parent and synchronizes it with
 * the given element.
 *
 * @param parent the parent widget
 * @param element the element
 * @param index if non-negative, indicates the position to insert the item 
 *    into its parent