aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/MeitrackProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-12-28 16:59:44 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2017-12-28 17:00:41 +1300
commitee2fbc5cb8bb5dc017eed3db3785fb8c2166df67 (patch)
treed93e8b1a1ae813501652284d335690584729e18f /src/org/traccar/protocol/MeitrackProtocolDecoder.java
parent6e0be9857bc26c59936d4446ef15488bd90f5150 (diff)
downloadtrackermap-server-ee2fbc5cb8bb5dc017eed3db3785fb8c2166df67.tar.gz
trackermap-server-ee2fbc5cb8bb5dc017eed3db3785fb8c2166df67.tar.bz2
trackermap-server-ee2fbc5cb8bb5dc017eed3db3785fb8c2166df67.zip
Handle missing T333 taxi info
Diffstat (limited to 'src/org/traccar/protocol/MeitrackProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/MeitrackProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
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]));