From 203b948f62d231a3e572c969477ac9ccfe09beae Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 26 Jul 2014 08:41:34 +0200 Subject: Ignore null device ids --- src/org/traccar/protocol/Gt06ProtocolDecoder.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/org/traccar/protocol/Gt06ProtocolDecoder.java b/src/org/traccar/protocol/Gt06ProtocolDecoder.java index b3a69c274..44cc5a16d 100644 --- a/src/org/traccar/protocol/Gt06ProtocolDecoder.java +++ b/src/org/traccar/protocol/Gt06ProtocolDecoder.java @@ -118,11 +118,12 @@ public class Gt06ProtocolDecoder extends BaseProtocolDecoder { } - else if (type == MSG_GPS || + else if (deviceId != null && ( + type == MSG_GPS || type == MSG_GPS_LBS || type == MSG_GPS_LBS_STATUS || type == MSG_GPS_PHONE || - type == MSG_GPS_LBS_EXTEND) { + type == MSG_GPS_LBS_EXTEND)) { // Create new position Position position = new Position(); -- cgit v1.2.3