Bug 73962 [IDE] NPE in CopyFilesAndFoldersOperation when overwriting existing folder
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/datatransfer/ImportOperation.java
void importFile(Object fileObject, int policy) {
        IContainer containerResource;
        try {
            containerResource = getDestinationContainerFor(fileObject);
        } catch (CoreException e) {
            IStatus coreStatus = e.getStatus();
            String newMessage = DataTransferMessages
                    .format(
                            "ImportOperation.coreImportError", new Object[] { fileObject, coreStatus.getMessage() }); 
            IStatus status = new Status(coreStatus.getSeverity(), coreStatus
                    .getPlugin(), coreStatus.getCode(), newMessage, null);
            errorTable.add(status);
            return;
        }
        String fileObjectPath = provider.getFullPath(fileObject);
        monitor.subTask(fileObjectPath);
        IFile targetResource = containerResource.getFile(new Path(provider
                .getLabel(fileObject)));
        monitor.worked(1);
        if (rejectedFiles.contains(targetResource.getFullPath()))
            return;
        
        IPath targetPath = targetResource.getLocation();
        
        if (targetPath != null
                && (targetPath.toFile().equals(new File(fileObjectPath)))) {
            errorTable.add(new Status(IStatus.ERROR, PlatformUI.PLUGIN_ID, 0,
                    DataTransferMessages.format(
                            "ImportOperation.targetSameAsSourceError", 
                            new Object[] { fileObjectPath }), null));