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


Ignore:
Timestamp:
2016-01-06T22:54:04+01:00 (8 years ago)
Author:
Don-vip
Message:

see #12255 - add robustness

File:
1 edited

Legend:

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

    r9329 r9331  
    445445        }
    446446
     447        // Changed to silently cope with no time info in exif. One case
     448        // of person having time that couldn't be parsed, but valid GPS info
     449        try {
     450            setExifTime(ExifReader.readTime(file));
     451        } catch (ParseException ex) {
     452            setExifTime(null);
     453        }
     454
    447455        try {
    448456            metadata = JpegMetadataReader.readMetadata(file);
     
    465473                Main.debug(ex.getMessage());
    466474            }
    467         }
    468 
    469         // Changed to silently cope with no time info in exif. One case
    470         // of person having time that couldn't be parsed, but valid GPS info
    471         try {
    472             setExifTime(ExifReader.readTime(file));
    473         } catch (ParseException ex) {
    474             setExifTime(null);
    475475        }
    476476
Note: See TracChangeset for help on using the changeset viewer.