aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/MeitrackProtocolDecoder.java
diff options
context:
space:
mode:
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]));