From a0bc8e67dba450ab1ba3a61340f6c06bf0fa448b Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 18 Nov 2015 21:51:17 +1300 Subject: Ignore unknown GT02 messages (fix #1537) --- src/org/traccar/protocol/Gt02ProtocolDecoder.java | 4 ++++ 1 file changed, 4 insertions(+) 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; -- cgit v1.2.3