Changeset 12985 in josm


Ignore:
Timestamp:
2017-10-11T20:15:21+02:00 (8 days ago)
Author:
Don-vip
Message:

fix #15427 - NPE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/ExifReader.java

    r12624 r12985  
    231231            value = Double.isNaN(deg) ? 0 : deg + (Double.isNaN(min) ? 0 : (min / 60)) + (Double.isNaN(sec) ? 0 : (sec / 3600));
    232232
    233             if (dirGps.getString(gpsTagRef).charAt(0) == cRef) {
     233            String s = dirGps.getString(gpsTagRef);
     234            if (s != null && s.charAt(0) == cRef) {
    234235                value = -value;
    235236            }
Note: See TracChangeset for help on using the changeset viewer.