Index: trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageMetadata.java
===================================================================
--- trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageMetadata.java	(revision 19248)
+++ trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageMetadata.java	(revision 19249)
@@ -7,4 +7,5 @@
 import java.io.UncheckedIOException;
 import java.net.URI;
+import java.nio.file.FileSystemNotFoundException;
 import java.time.Instant;
 import java.util.List;
@@ -262,5 +263,5 @@
     /**
      * Extract GPS metadata from image EXIF. Has no effect if the image file is not set
-     *
+     * <p>
      * If successful, fills in the LatLon, speed, elevation, image direction, and other attributes
      * @since 18592 (interface), 9270 (GpxImageEntry)
@@ -272,4 +273,6 @@
         } catch (IOException e) {
             throw new UncheckedIOException(e);
+        } catch (IllegalArgumentException | FileSystemNotFoundException e) {
+            throw new UncheckedIOException(new IOException(e));
         }
     }
