diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-04-23 22:50:44 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-04-23 22:50:44 +1200 |
commit | 34e2554f43e621c3432abc9f53fffd82061c30ce (patch) | |
tree | 632820bb83a87ff938a551f74e855e137bbfe601 /src/org/traccar/protocol | |
parent | a88165807ab5ac62a843db581fe22ebd22abee41 (diff) | |
download | trackermap-server-34e2554f43e621c3432abc9f53fffd82061c30ce.tar.gz trackermap-server-34e2554f43e621c3432abc9f53fffd82061c30ce.tar.bz2 trackermap-server-34e2554f43e621c3432abc9f53fffd82061c30ce.zip |
Ignore messages without location
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r-- | src/org/traccar/protocol/UlbotechProtocolDecoder.java | 6 |
1 files changed, 5 insertions, 1 deletions
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; } } |