Ignore:
Timestamp:
2023-05-30T17:45:50+02:00 (13 months ago)
Author:
stoecker
Message:

fix regression with short GGA sentence

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/nmea/NmeaReader.java

    r18739 r18740  
    433433                }
    434434                // reference ID
    435                 accu = e[GGA.REF.position];
    436                 if (!accu.isEmpty()) {
    437                     currentwp.put(GpxConstants.PT_DGPSID, accu);
     435                if(GGA.REF.position < e.length)
     436                {
     437                    accu = e[GGA.REF.position];
     438                    if (!accu.isEmpty()) {
     439                        currentwp.put(GpxConstants.PT_DGPSID, accu);
     440                    }
    438441                }
    439442            } else if (isSentence(e[0], Sentence.VTG)) {
Note: See TracChangeset for help on using the changeset viewer.