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
boolean haveDummy = false;
			
			Item[] items= getItems(ti);
			for (int i= 0; i < items.length; i++) {
				if (items[i].getData() != null) {
					disassociate(items[i]);
					items[i].dispose();
				}
				else {
					if (needDummy && !haveDummy) {
						haveDummy = true;
					}
					else {
						items[i].dispose();
					}
				}
			}
			if (needDummy && !haveDummy) {
				newItem(ti, SWT.NULL, -1);
			}
			
			return;
		}
	}
	
	if (elementChildren == null) {
		elementChildren = getSortedChildren(parent);
	}
	
	Control tree = getControl();