Index: /trunk/src/org/openstreetmap/josm/io/CachedFile.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/io/CachedFile.java	(revision 8595)
+++ /trunk/src/org/openstreetmap/josm/io/CachedFile.java	(revision 8596)
@@ -215,11 +215,15 @@
             url = new URL(name);
             if ("file".equals(url.getProtocol())) {
-                cacheFile = new File(name.substring("file:/".length()));
+                System.out.println("file protocol");
+                cacheFile = new File(name.substring("file:/".length() - 1));
                 if (!cacheFile.exists()) {
-                    cacheFile = new File(name.substring("file://".length()));
-                }
-            } else {
+                    cacheFile = new File(name.substring("file://".length() - 1));
+                    System.out.println(cacheFile.getPath());
+                }
+            } else {
+                System.out.println(url.getProtocol() + " doesnt equal file");
                 cacheFile = checkLocal(url);
             }
+            System.out.println(cacheFile.getPath());
         } catch (MalformedURLException e) {
             if (name.startsWith("resource://")) {
