aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHendrik Eeckhaut2012-02-07 07:55:53 (EST)
committerPaul Webster2012-02-07 07:55:53 (EST)
commitd59df20d10f9f093ef19c6bfc1daaa6c7a21013f (patch)
treee51109275380bdf4ac96431b8203c60fda4371e0
parent5434bb309a41cdffe2752c29a6f5fa35dd1556ba (diff)
downloadeclipse.platform.ui-d59df20d10f9f093ef19c6bfc1daaa6c7a21013f.zip
eclipse.platform.ui-d59df20d10f9f093ef19c6bfc1daaa6c7a21013f.tar.gz
eclipse.platform.ui-d59df20d10f9f093ef19c6bfc1daaa6c7a21013f.tar.bz2
Bug 370632 - NPE when copying or moving resources linked to non-localv20120207-1255
filesystem Use validateLinkLocationURI(*)
-rw-r--r--bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CopyFilesAndFoldersOperation.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CopyFilesAndFoldersOperation.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CopyFilesAndFoldersOperation.java
index b2f749e..3c01eb0 100644
--- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CopyFilesAndFoldersOperation.java
+++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CopyFilesAndFoldersOperation.java
@@ -1670,8 +1670,8 @@ public class CopyFilesAndFoldersOperation {
}
IWorkspace workspace = destination.getWorkspace();
IResource linkHandle = createLinkedResourceHandle(destination, source);
- IStatus locationStatus = workspace.validateLinkLocation(linkHandle,
- source.getRawLocation());
+ IStatus locationStatus = workspace.validateLinkLocationURI(linkHandle,
+ source.getRawLocationURI());
if (locationStatus.getSeverity() == IStatus.ERROR) {
return locationStatus.getMessage();