Changeset 6292 in josm for trunk


Ignore:
Timestamp:
2013-10-04T00:11:04+02:00 (11 years ago)
Author:
Don-vip
Message:

fix #9150 - NPE in GeoImageLayer.extractExif()

File:
1 edited

Legend:

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

    r6287 r6292  
    532532
    533533        try {
    534             int orientation = dirExif.getInt(ExifIFD0Directory.TAG_ORIENTATION);
    535             e.setExifOrientation(orientation);
     534            if (dirExif != null) {
     535                int orientation = dirExif.getInt(ExifIFD0Directory.TAG_ORIENTATION);
     536                e.setExifOrientation(orientation);
     537            }
    536538        } catch (MetadataException ex) {
    537539        }
Note: See TracChangeset for help on using the changeset viewer.