Changeset 12422 in josm for trunk/src/org
- Timestamp:
- 2017-06-22T01:07:31+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/nmea/NmeaReader.java
r12421 r12422 342 342 // other values than (T)rue are ignored 343 343 accu = e[VTG.COURSE.position]; 344 if (!accu.isEmpty() ) {344 if (!accu.isEmpty() && currentwp != null) { 345 345 Double.parseDouble(accu); 346 346 currentwp.put("course", accu); … … 351 351 if (accu.startsWith("K")) { 352 352 accu = e[VTG.SPEED_KMH.position]; 353 if (!accu.isEmpty() ) {353 if (!accu.isEmpty() && currentwp != null) { 354 354 double speed = Double.parseDouble(accu); 355 355 speed /= 3.6; // speed in m/s
Note:
See TracChangeset
for help on using the changeset viewer.