Index: /applications/editors/josm/plugins/photo_geotagging/test/unit/org/openstreetmap/josm/plugins/photo_geotagging/ExifGPSTaggerTest.java
===================================================================
--- /applications/editors/josm/plugins/photo_geotagging/test/unit/org/openstreetmap/josm/plugins/photo_geotagging/ExifGPSTaggerTest.java	(revision 32036)
+++ /applications/editors/josm/plugins/photo_geotagging/test/unit/org/openstreetmap/josm/plugins/photo_geotagging/ExifGPSTaggerTest.java	(revision 32037)
@@ -1,7 +1,10 @@
 package org.openstreetmap.josm.plugins.photo_geotagging;
+
+import static junit.framework.Assert.assertFalse;
 
 import java.io.ByteArrayOutputStream;
 import java.io.File;
 import java.util.Date;
+import java.util.Scanner;
 
 import org.apache.commons.imaging.Imaging;
@@ -33,3 +36,14 @@
         new ExifRewriter().updateExifMetadataLossless(in, new ByteArrayOutputStream(), outputSet);
     }
+
+    @Test
+    public void testTicket11902() throws Exception {
+        final File in = new File(TestUtils.getTestDataRoot(), "IMG_7250_small.JPG");
+        final File out = tempFolder.newFile();
+        ExifGPSTagger.setExifGPSTag(in, out, 12, 34, new Date(), 12.34, Math.E, Math.PI);
+        final Process jhead = Runtime.getRuntime().exec(new String[]{"jhead", out.getAbsolutePath()});
+        final String stdout = new Scanner(jhead.getErrorStream()).useDelimiter("\\A").next();
+        System.out.println(stdout);
+        assertFalse(stdout.contains("Suspicious offset of first Exif IFD value"));
+    }
 }
