aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-12-17 00:26:20 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2019-12-17 00:26:20 -0800
commitef2bd4662484e4a82bea5afb0d399eed33e859db (patch)
tree63a6d011ca99294b85a3e0b959ecb2e2f7b53643 /src/main/java/org
parent1b30b26b56e3804f34dae87eb69b2291635175d9 (diff)
downloadtrackermap-server-ef2bd4662484e4a82bea5afb0d399eed33e859db.tar.gz
trackermap-server-ef2bd4662484e4a82bea5afb0d399eed33e859db.tar.bz2
trackermap-server-ef2bd4662484e4a82bea5afb0d399eed33e859db.zip
Handle no GPS data
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/traccar/protocol/OmnicommProtocolDecoder.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/OmnicommProtocolDecoder.java b/src/main/java/org/traccar/protocol/OmnicommProtocolDecoder.java
index dc77dda68..cd8b74c9a 100644
--- a/src/main/java/org/traccar/protocol/OmnicommProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/OmnicommProtocolDecoder.java
@@ -123,7 +123,9 @@ public class OmnicommProtocolDecoder extends BaseProtocolDecoder {
position.set(Position.KEY_SATELLITES, nav.getGPSNSat());
}
- positions.add(position);
+ if (position.getFixTime() != null) {
+ positions.add(position);
+ }
}
if (positions.isEmpty()) {