Index: trunk/src/org/openstreetmap/josm/io/nmea/NmeaParser.java
===================================================================
--- trunk/src/org/openstreetmap/josm/io/nmea/NmeaParser.java	(revision 19324)
+++ trunk/src/org/openstreetmap/josm/io/nmea/NmeaParser.java	(revision 19325)
@@ -335,4 +335,6 @@
                 }
             } else {
+                // Since there is no checksum, we remove any line endings
+                chkstrings[0] = chkstrings[0].replaceAll("\\r|\\n", "");
                 noChecksum++;
             }
@@ -444,7 +446,9 @@
                 }
                 // Age of differential correction
-                accu = e[GGA.GPS_AGE.position];
-                if (!accu.isEmpty() && currentwp != null) {
-                    currentwp.put(GpxConstants.PT_AGEOFDGPSDATA, Float.valueOf(accu));
+                if (GGA.GPS_AGE.position < e.length) {
+                    accu = e[GGA.GPS_AGE.position];
+                    if (!accu.isEmpty() && currentwp != null) {
+                        currentwp.put(GpxConstants.PT_AGEOFDGPSDATA, Float.valueOf(accu));
+                    }
                 }
                 // reference ID
