diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-11-18 21:51:17 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-11-18 21:51:17 +1300 |
commit | a0bc8e67dba450ab1ba3a61340f6c06bf0fa448b (patch) | |
tree | 481c238a76ad1662b2f0f28f281a868d41026ecc | |
parent | 7b46396a9e5b6546b89e927c715c65d59296cd83 (diff) | |
download | trackermap-server-a0bc8e67dba450ab1ba3a61340f6c06bf0fa448b.tar.gz trackermap-server-a0bc8e67dba450ab1ba3a61340f6c06bf0fa448b.tar.bz2 trackermap-server-a0bc8e67dba450ab1ba3a61340f6c06bf0fa448b.zip |
Ignore unknown GT02 messages (fix #1537)
-rw-r--r-- | src/org/traccar/protocol/Gt02ProtocolDecoder.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/Gt02ProtocolDecoder.java b/src/org/traccar/protocol/Gt02ProtocolDecoder.java index d15d999cf..53739ee1c 100644 --- a/src/org/traccar/protocol/Gt02ProtocolDecoder.java +++ b/src/org/traccar/protocol/Gt02ProtocolDecoder.java @@ -100,6 +100,10 @@ public class Gt02ProtocolDecoder extends BaseProtocolDecoder { position.setLatitude(latitude); position.setLongitude(longitude); + } else { + + return null; + } return position; |