Ticket #21007: NmeaParser.patch
File NmeaParser.patch, 1.3 KB (added by , 3 months ago) |
---|
-
src/org/openstreetmap/josm/io/nmea/NmeaParser.java
334 334 return false; 335 335 } 336 336 } else { 337 // Since there is no checksum, we remove any line endings 338 chkstrings[0] = chkstrings[0].replaceAll("\\r|\\n", ""); 337 339 noChecksum++; 338 340 } 339 341 // now for the content … … 443 445 } 444 446 } 445 447 // Age of differential correction 446 accu = e[GGA.GPS_AGE.position]; 447 if (!accu.isEmpty() && currentwp != null) { 448 currentwp.put(GpxConstants.PT_AGEOFDGPSDATA, Float.valueOf(accu)); 448 if (GGA.GPS_AGE.position < e.length) { 449 accu = e[GGA.GPS_AGE.position]; 450 if (!accu.isEmpty() && currentwp != null) { 451 currentwp.put(GpxConstants.PT_AGEOFDGPSDATA, Float.valueOf(accu)); 452 } 449 453 } 450 454 // reference ID 451 455 if (GGA.REF.position < e.length) {