diff options
author | jcardus <joaquim_cardeira@hotmail.com> | 2024-06-11 04:58:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-11 04:58:57 +0100 |
commit | 7e80c11158a046045484affe9406adfde7219697 (patch) | |
tree | 696f098730209799de5e6582884fb51e2c806e00 | |
parent | 4f01875e3f48510427dabca966eb35c18ec33004 (diff) | |
download | trackermap-server-7e80c11158a046045484affe9406adfde7219697.tar.gz trackermap-server-7e80c11158a046045484affe9406adfde7219697.tar.bz2 trackermap-server-7e80c11158a046045484affe9406adfde7219697.zip |
Update src/main/java/org/traccar/protocol/Gl200TextProtocolDecoder.java
Co-authored-by: Anton Tananaev <anton.tananaev@gmail.com>
-rw-r--r-- | src/main/java/org/traccar/protocol/Gl200TextProtocolDecoder.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/Gl200TextProtocolDecoder.java b/src/main/java/org/traccar/protocol/Gl200TextProtocolDecoder.java index 33456c48d..cfed351f2 100644 --- a/src/main/java/org/traccar/protocol/Gl200TextProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/Gl200TextProtocolDecoder.java @@ -1035,7 +1035,8 @@ public class Gl200TextProtocolDecoder extends BaseProtocolDecoder { private Object decodeIgn( Channel channel, SocketAddress remoteAddress, String[] v, String type) throws ParseException { - int index = 1; // header + int index = 0; + index += 1; // header String protocolVersion = v[index++]; // protocol version DeviceSession deviceSession = getDeviceSession(channel, remoteAddress, v[index++]); if (deviceSession == null) { |