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
* @return the next item, or <code>null</code> if none
 */
protected Item getNextItem(Item item, boolean includeChildren) {
	if (item == null) {
		return null;
	}
	if (includeChildren && getExpanded(item)) {
		Item[] children = getItems(item);
		if (children != null && children.length > 0) {
			return children[0];
		}
	}
	
	
	Item parent = getParentItem(item);
	if (parent == null) {
		return null;
	}
	Item[] siblings = getItems(parent);
	if (siblings != null && siblings.length <= 1) {
		return getNextItem(parent, false);
	}
	for (int i = 0; i < siblings.length; i++) {
		if (siblings[i] == item && i < (siblings.length - 1)) {
			return siblings[i+1];
		}
	}
	return getNextItem(parent, false);
}
/**