Bug 73962 [IDE] NPE in CopyFilesAndFoldersOperation when overwriting existing folder
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/datatransfer/ImportOperation.java
} else {
                IFile file = getFile(newDestination);
                if (file != null) {
                    if (!queryOverwriteFile(file, policy))
                        noOverwrite.add(file.getFullPath());
                    else if (file.isReadOnly())
                        overwriteReadonly.add(file);
                }
            }
        }
    }
    /**
     * Creates the folders that appear in the specified resource path.
     * These folders are created relative to the destination container.
     *
     * @param path the relative path of the resource
     * @return the container resource coresponding to the given path
     * @exception CoreException if this method failed
     */
    IContainer createContainersFor(IPath path) throws CoreException {
        IContainer currentFolder = destinationContainer;
        int segmentCount = path.segmentCount();
        
        if (segmentCount == 0)
            return currentFolder;
        
        if (currentFolder.getType() == IResource.ROOT)
            return createFromRoot(path);
        for (int i = 0; i < segmentCount; i++) {
            currentFolder = currentFolder.getFolder(new Path(path.segment(i)));