Index: src/org/openstreetmap/josm/io/nmea/NmeaParser.java
===================================================================
--- src/org/openstreetmap/josm/io/nmea/NmeaParser.java	(revision 19322)
+++ src/org/openstreetmap/josm/io/nmea/NmeaParser.java	(working copy)
@@ -334,6 +334,8 @@
                     return false;
                 }
             } else {
+                // Since there is no checksum, we remove any line endings
+                chkstrings[0] = chkstrings[0].replaceAll("\\r|\\n", "");
                 noChecksum++;
             }
             // now for the content
@@ -443,9 +445,11 @@
                     }
                 }
                 // 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
                 if (GGA.REF.position < e.length) {
