Bug 127320 [Wizards] NPE importing from zip file
Build id: I20060208-0848 I got this NPE in my log when trying to import an existing project from a zip file: at org.eclipse.core.internal.resources.Workspace.loadProjectDescription(Workspace.java:1399) at org.eclipse.ui.internal.wizards.datatransfer.WizardProjectsImportPage$ProjectRecord.setProjectName(WizardProjectsImportPage.java:145) at org.eclipse.ui.internal.wizards.datatransfer.WizardProjectsImportPage$ProjectRecord.<init>(WizardProjectsImportPage.java:132) at org.eclipse.ui.internal.wizards.datatransfer.WizardProjectsImportPage.collectProjectFilesFromProvider(WizardProjectsImportPage.java:919)
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/TarLeveledStructureProvider.java
else
			parent = createContainer(pathname.removeLastSegments(1));
		TarEntry newEntry = new TarEntry(pathname.toString());
		newEntry.setFileType(TarEntry.DIRECTORY);
		directoryEntryCache.put(pathname, newEntry);
		List childList = new ArrayList();
		children.put(newEntry, childList);
		List parentChildList = (List) children.get(parent);
		parentChildList.add(newEntry);
		return newEntry;
	}
	/**
	 * Creates a new tar file entry with the specified name.
	 */
	protected void createFile(TarEntry entry) {
		IPath pathname = new Path(entry.getName());
		TarEntry parent;
		if (pathname.segmentCount() == 1)
			parent = root;
		else
			parent = (TarEntry) directoryEntryCache.get(pathname
					.removeLastSegments(1));
		List childList = (List) children.get(parent);
		childList.add(entry);
	}
	/*
	 * (non-Javadoc) Method declared on IImportStructureProvider
	 */
	public List getChildren(Object element) {
		if (children == null)