From 7e80c11158a046045484affe9406adfde7219697 Mon Sep 17 00:00:00 2001 From: jcardus Date: Tue, 11 Jun 2024 04:58:57 +0100 Subject: Update src/main/java/org/traccar/protocol/Gl200TextProtocolDecoder.java Co-authored-by: Anton Tananaev --- src/main/java/org/traccar/protocol/Gl200TextProtocolDecoder.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main/java/org') 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) { -- cgit v1.2.3