aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2014-07-26 08:41:34 +0200
committerAnton Tananaev <anton.tananaev@gmail.com>2014-07-26 08:41:34 +0200
commit203b948f62d231a3e572c969477ac9ccfe09beae (patch)
treeec237a7c081d18b3b68454242341ea050d6196f3
parent711f4c5177de89549263a1799136930dcb0113ad (diff)
downloadtraccar-server-203b948f62d231a3e572c969477ac9ccfe09beae.tar.gz
traccar-server-203b948f62d231a3e572c969477ac9ccfe09beae.tar.bz2
traccar-server-203b948f62d231a3e572c969477ac9ccfe09beae.zip
Ignore null device ids
-rw-r--r--src/org/traccar/protocol/Gt06ProtocolDecoder.java5
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();