Changeset 19249 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2024-10-22T19:40:35+02:00 (4 weeks ago)
Author:
taylor.smock
Message:

Fix #23978: Windows does not like paths with multiple :

This fixes an issue where a gpx track with attached images could cause an
exception.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageMetadata.java

    r18592 r19249  
    77import java.io.UncheckedIOException;
    88import java.net.URI;
     9import java.nio.file.FileSystemNotFoundException;
    910import java.time.Instant;
    1011import java.util.List;
     
    262263    /**
    263264     * Extract GPS metadata from image EXIF. Has no effect if the image file is not set
    264      *
     265     * <p>
    265266     * If successful, fills in the LatLon, speed, elevation, image direction, and other attributes
    266267     * @since 18592 (interface), 9270 (GpxImageEntry)
     
    272273        } catch (IOException e) {
    273274            throw new UncheckedIOException(e);
     275        } catch (IllegalArgumentException | FileSystemNotFoundException e) {
     276            throw new UncheckedIOException(new IOException(e));
    274277        }
    275278    }
Note: See TracChangeset for help on using the changeset viewer.