diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2014-07-26 08:41:34 +0200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2014-07-26 08:41:34 +0200 |
commit | 203b948f62d231a3e572c969477ac9ccfe09beae (patch) | |
tree | ec237a7c081d18b3b68454242341ea050d6196f3 /src | |
parent | 711f4c5177de89549263a1799136930dcb0113ad (diff) | |
download | trackermap-server-203b948f62d231a3e572c969477ac9ccfe09beae.tar.gz trackermap-server-203b948f62d231a3e572c969477ac9ccfe09beae.tar.bz2 trackermap-server-203b948f62d231a3e572c969477ac9ccfe09beae.zip |
Ignore null device ids
Diffstat (limited to 'src')
-rw-r--r-- | src/org/traccar/protocol/Gt06ProtocolDecoder.java | 5 |
1 files 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(); |