Ignore:
Timestamp:
2021-11-07T15:01:40+01:00 (3 years ago)
Author:
Don-vip
Message:

see #21486 - don't try to read int/long/float/double missing GPX metadata

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/gpx/GpxImageEntry.java

    r18252 r18315  
    732732
    733733        try {
    734             if (dirExif != null) {
     734            if (dirExif != null && dirExif.containsTag(ExifIFD0Directory.TAG_ORIENTATION)) {
    735735                setExifOrientation(dirExif.getInt(ExifIFD0Directory.TAG_ORIENTATION));
    736736            }
     
    740740
    741741        try {
    742             if (dir != null) {
     742            if (dir != null && dir.containsTag(JpegDirectory.TAG_IMAGE_WIDTH) && dir.containsTag(JpegDirectory.TAG_IMAGE_HEIGHT)) {
    743743                // there are cases where these do not match width and height stored in dirExif
    744744                setWidth(dir.getInt(JpegDirectory.TAG_IMAGE_WIDTH));
Note: See TracChangeset for help on using the changeset viewer.