aboutsummaryrefslogtreecommitdiffstats
path: root/netx
diff options
context:
space:
mode:
Diffstat (limited to 'netx')
-rw-r--r--netx/net/sourceforge/jnlp/cache/ResourceTracker.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/netx/net/sourceforge/jnlp/cache/ResourceTracker.java b/netx/net/sourceforge/jnlp/cache/ResourceTracker.java
index 898594f..36ef3c6 100644
--- a/netx/net/sourceforge/jnlp/cache/ResourceTracker.java
+++ b/netx/net/sourceforge/jnlp/cache/ResourceTracker.java
@@ -398,7 +398,7 @@ public class ResourceTracker {
return resource.localFile;
if (location.getProtocol().equalsIgnoreCase("file")) {
- File file = new File(location.getFile());
+ File file = new File(location.toURI().getPath());
if (file.exists())
return file;
}
@@ -409,6 +409,9 @@ public class ResourceTracker {
ex.printStackTrace();
return null; // need an error exception to throw
+ } catch (URISyntaxException e) {
+ e.printStackTrace();
+ return null;
}
}