Index: /trunk/src/org/openstreetmap/josm/io/Compression.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/io/Compression.java	(revision 14978)
+++ /trunk/src/org/openstreetmap/josm/io/Compression.java	(revision 14979)
@@ -176,10 +176,14 @@
      */
     public static InputStream getUncompressedFileInputStream(File file) throws IOException {
-        InputStream in = Files.newInputStream(file.toPath());
         try {
-            return byExtension(file.getName()).getUncompressedInputStream(in);
-        } catch (IOException e) {
-            Utils.close(in);
-            throw e;
+            InputStream in = Files.newInputStream(file.toPath());
+            try {
+                return byExtension(file.getName()).getUncompressedInputStream(in);
+            } catch (IOException e) {
+                Utils.close(in);
+                throw e;
+            }
+        } catch (InvalidPathException e) {
+            throw new IOException(e);
         }
     }
