Bug 125144 Clicking Show Project in Package Explorer results in exception
Clicking Show Project in Code model results in exception in DOS box === Steps to Reproduce: Create a Java project Open the Package Explorer Click the View menu Show - Projects. (This actually is a radio group menu item. It is by default selected, so clicking it again should have no effect) === Observed behaviour: Dos box: Unhandled event loop exception Reason: java.lang.NullPointerException See .log file (will be attached) === Expected behaviour: No exception === Reproducibility: yes
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java
result.add(parent.getData());
				parent= parent.getParentItem();
			}
			Collections.reverse(result);
			return new TreePath(result.toArray());
		}
		private Object getElement(TreeItem item) {
			Object result= item.getData();
			if (result == null)
				return null;
			return result;
		}
		protected Widget internalGetWidgetToSelect(Object element) {
			Widget result= findItem(element);
			if (!(result instanceof TreeItem))
				return result;
			if (isInHistroyWorkingSet((TreeItem)result)) {
				List l= (List)fAdditionalMappings.get(element);
				if (l != null && !l.isEmpty()) {
					return (Widget)l.get(0);
				} else {
					
					
					return null;
				}
			}
			return result;
		}
		private boolean isInHistroyWorkingSet(TreeItem item) {
			TreeItem parent= item.getParentItem();