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
protected Object[] getSortedChildren(Object parent) {
			IParentAwareSorter sorter= getSorter() instanceof IParentAwareSorter 
				? (IParentAwareSorter)getSorter()
				: null;
			if (sorter != null)
				sorter.setParent(parent);
			try {
				return super.getSortedChildren(parent);
			} finally {
				if (sorter != null)
					sorter.setParent(null);
			}
		}
		
		
		
		
		
		Map fAdditionalMappings= new HashMap();
		protected void mapElement(Object element, Widget item) {
			Widget existingItem= findItem(element);
			
			
			
			if (existingItem == null || existingItem == item) {
				super.mapElement(element, item);
			} else {
				List l= (List)fAdditionalMappings.get(element);
				if (l == null) {
					l= new ArrayList();