Bug 37886 Show type hierarchy cancel ends up with empty dialog
1) open type hierarchy on object 2) cancel ->the search is cancelled but an empty dialog is showing up.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/HierarchyInformationControl.java
}
					break;
				default :
					input= null;
			}
		} catch (JavaModelException e) {
			JavaPlugin.log(e);
		}
		
		fLabel.setText(getHeaderLabel(locked == null ? input : locked));
		try {
			fLifeCycle.ensureRefreshedTypeHierarchy(input, JavaPlugin.getActiveWorkbenchWindow());
		} catch (InvocationTargetException e1) {
			input= null;
		} catch (InterruptedException e1) {
			input= null;
		}
		TraditionalHierarchyContentProvider contentProvider= new TraditionalHierarchyContentProvider(fLifeCycle);
		contentProvider.setMemberFilter(locked != null ? new IMember[] { locked } : null);
		getTreeViewer().setContentProvider(contentProvider);		
		
		fFocus= locked;
		
		Object selection= null;
		if (input instanceof IMember) {
			selection=  input;
		} else {
			Object[] objects= contentProvider.getElements(fLifeCycle);
			if (objects.length > 0) {
				selection=  objects[0];