diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-10-09 16:10:53 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-10-09 16:10:53 -0700 |
commit | 91e6409a0c012106cec454e5953fab2e4b558972 (patch) | |
tree | 4b19f0e0adf0abba087dd9ee2276112f6104064e /src/main/java/org | |
parent | cdb2d2aa151f900bf16af22538b6049daf7e494c (diff) | |
download | trackermap-server-91e6409a0c012106cec454e5953fab2e4b558972.tar.gz trackermap-server-91e6409a0c012106cec454e5953fab2e4b558972.tar.bz2 trackermap-server-91e6409a0c012106cec454e5953fab2e4b558972.zip |
Handle no location
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java b/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java index a9da34e6e..4c71d3724 100644 --- a/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java @@ -1253,6 +1253,10 @@ public class Gt06ProtocolDecoder extends BaseProtocolDecoder { } } + if (position.getFixTime() == null) { + getLastLocation(position, null); + } + sendResponse(channel, false, MSG_GPS_MODULAR, buf.readUnsignedShort(), null); return position; |