Bug 16843 Not present exception closing java editor that is outside classpath
Build 20020521 1. Create java project 'Proj' with source folder 'src' 2. Create folder 'p' directly under 'Proj' (i.e. outside build path) 3. Create file 'X.java' under 'Proj/p' 4. Open X.java in java editor 5. Close it Observe: You get the following message printed to the log: !ENTRY org.eclipse.jdt.ui 4 1 May 22, 2002 17:14:39.936 !MESSAGE Child not present !SUBENTRY 1 org.eclipse.jdt.core 4 969 May 22, 2002 17:14:39.936 !MESSAGE p does not exist.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingContentProvider.java
if (element instanceof Collection) {
				Collection elements= (Collection)element;
				if (elements.isEmpty())
					return NO_CHILDREN;
				Object[] result= new Object[0];
				Iterator iter= ((Collection)element).iterator();
				while (iter.hasNext()) {
					Object[] children= getChildren(iter.next());
					if (children != NO_CHILDREN)
						result= concatenate(result, children);
				}
				return result;
			}
			if (element instanceof IPackageFragment) 
				return getPackageContents((IPackageFragment)element);
			if (fProvideMembers && element instanceof IType)
				return getChildren((IType)element);
			if (fProvideMembers && element instanceof ISourceReference && element instanceof IParent)
				return removeImportAndPackageDeclarations(super.getChildren(element));
			if (element instanceof IJavaProject) 
				return getPackageFragmentRoots((IJavaProject)element);
			return super.getChildren(element);
		} catch (JavaModelException e) {
			return NO_CHILDREN;
		}		
	}
	private Object[] getPackageContents(IPackageFragment fragment) throws JavaModelException {
		ISourceReference[] sourceRefs;
		if (fragment.getKind() == IPackageFragmentRoot.K_SOURCE) {
			sourceRefs= fragment.getCompilationUnits();