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


Ignore:
Timestamp:
2010-07-26T09:59:31+02:00 (14 years ago)
Author:
bastiK
Message:

fixed #5271 - Index out of bounds when loading images with GPS info in EXIF

File:
1 edited

Legend:

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

    r3365 r3387  
    582582                e.setPos(null);
    583583            }
     584        } catch (Exception ex) { // (other exceptions, e.g. #5271)
     585            System.err.println("Error when reading EXIF from file: "+ex);
     586            e.setExifCoor(null);
     587            e.setPos(null);
    584588        }
    585589
     
    592596        } catch (CompoundException p) {
    593597            direction = null;
    594         }
     598        } catch (Exception ex) {
     599            direction = null;
     600        }
     601
    595602        if (direction != null) {
    596603            e.setExifImgDir(direction.doubleValue());
Note: See TracChangeset for help on using the changeset viewer.