From 34e2554f43e621c3432abc9f53fffd82061c30ce Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Thu, 23 Apr 2015 22:50:44 +1200 Subject: Ignore messages without location --- src/org/traccar/protocol/UlbotechProtocolDecoder.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/org/traccar') diff --git a/src/org/traccar/protocol/UlbotechProtocolDecoder.java b/src/org/traccar/protocol/UlbotechProtocolDecoder.java index 48122a8f3..9ad590ad4 100644 --- a/src/org/traccar/protocol/UlbotechProtocolDecoder.java +++ b/src/org/traccar/protocol/UlbotechProtocolDecoder.java @@ -97,7 +97,11 @@ public class UlbotechProtocolDecoder extends BaseProtocolDecoder { } position.setExtendedInfo(extendedInfo.toString()); - return position; + + if (position.getValid() != null) { + return position; + } + return null; } } -- cgit v1.2.3