From ee2fbc5cb8bb5dc017eed3db3785fb8c2166df67 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Thu, 28 Dec 2017 16:59:44 +1300 Subject: Handle missing T333 taxi info --- src/org/traccar/protocol/MeitrackProtocolDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/org') diff --git a/src/org/traccar/protocol/MeitrackProtocolDecoder.java b/src/org/traccar/protocol/MeitrackProtocolDecoder.java index 1fd1bb3ac..259283c19 100644 --- a/src/org/traccar/protocol/MeitrackProtocolDecoder.java +++ b/src/org/traccar/protocol/MeitrackProtocolDecoder.java @@ -259,7 +259,7 @@ public class MeitrackProtocolDecoder extends BaseProtocolDecoder { boolean started = data[0].charAt(0) == '0'; position.set("taximeterOn", started); position.set("taximeterStart", data[1]); - if (!started) { + if (data.length > 2) { position.set("taximeterEnd", data[2]); position.set("taximeterDistance", Integer.parseInt(data[3])); position.set("taximeterFare", Integer.parseInt(data[4])); -- cgit v1.2.3