From ef2bd4662484e4a82bea5afb0d399eed33e859db Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 17 Dec 2019 00:26:20 -0800 Subject: Handle no GPS data --- src/main/java/org/traccar/protocol/OmnicommProtocolDecoder.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/main') 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()) { -- cgit v1.2.3