diff options
Diffstat (limited to 'src/org')
-rw-r--r-- | src/org/traccar/protocol/Gl200TextProtocolDecoder.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/Gl200TextProtocolDecoder.java b/src/org/traccar/protocol/Gl200TextProtocolDecoder.java index e004ce994..97cc8f987 100644 --- a/src/org/traccar/protocol/Gl200TextProtocolDecoder.java +++ b/src/org/traccar/protocol/Gl200TextProtocolDecoder.java @@ -729,6 +729,9 @@ public class Gl200TextProtocolDecoder extends BaseProtocolDecoder { dateFormat.setTimeZone(TimeZone.getTimeZone("UTC")); if (BitUtil.check(reportMask, 30)) { + while (values[index].isEmpty()) { + index += 1; + } position.setValid(Integer.parseInt(values[index++]) > 0); if (!values[index].isEmpty()) { position.setSpeed(UnitsConverter.knotsFromKph(Double.parseDouble(values[index++]))); |