aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHendrik Eeckhaut2012-02-07 07:55:53 (EST)
committerPaul Webster2012-02-07 07:58:08 (EST)
commit7f5a131714ad9ae016b28645560e7579a852a11b (patch)
tree917e8a0070b5ad1271ff0ac208e573480fe26d72
parent4f0e1d80fefd3773e96db606b47b798b03beae13 (diff)
downloadeclipse.platform.ui-7f5a131714ad9ae016b28645560e7579a852a11b.zip
eclipse.platform.ui-7f5a131714ad9ae016b28645560e7579a852a11b.tar.gz
eclipse.platform.ui-7f5a131714ad9ae016b28645560e7579a852a11b.tar.bz2
Bug 370632 - NPE when copying or moving resources linked to non-localI20120207-1245I20120207-1030
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();