Bug 61709 NPE in JUnit view plus strange behavior
I200405060200 + plug-in export for I200405110800 I was running two JUnit plug-in tests from two different workbench window (maybe I switched to early from one window to the other). I then saw very odd behavior: the JUnit view switched showing results from both tests (see attached picture which shows that the jdt.ui.tests are run but a result from the refactoring tests is reported (below title). The cause for this might be the following NPE(?):
org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/TestHierarchyTab.java
for (int i= 0; i < children.length; i++) {
			TreeItem item2= findFailureInTree(children[i]);
			if (item2 != null)
				return item2;
		}
		return null;
	}
	
	protected void expandAll() {
		TreeItem[] treeItems= fTree.getSelection();
		fTree.setRedraw(false);
		for (int i= 0; i < treeItems.length; i++) {
			expandAll(treeItems[i]);
		}
		fTree.setRedraw(true);
	}
	
	private void expandAll(TreeItem item) {
		item.setExpanded(true);
		TreeItem[] items= item.getItems();
		for (int i= 0; i < items.length; i++) {
			expandAll(items[i]);
		}
	}
	public void aboutToEnd() {
		for (int i= 0; i < fExecutionPath.size(); i++) {
			refreshItem((TreeItem) fExecutionPath.get(i), false);
		}
	}
}