aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-04-19 21:35:00 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2021-04-19 21:35:00 -0700
commitd45729113d11116d1645d26e7606560aecbb8b11 (patch)
treea2415b3561d69b8063144ab7dbf75f303f962902 /src/main
parent827f9e2960f7b9e2a47b9794458621cb40426492 (diff)
downloadtraccar-server-d45729113d11116d1645d26e7606560aecbb8b11.tar.gz
traccar-server-d45729113d11116d1645d26e7606560aecbb8b11.tar.bz2
traccar-server-d45729113d11116d1645d26e7606560aecbb8b11.zip
Fix no location messages
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/traccar/protocol/Gs100ProtocolDecoder.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/Gs100ProtocolDecoder.java b/src/main/java/org/traccar/protocol/Gs100ProtocolDecoder.java
index d55773785..28a42476c 100644
--- a/src/main/java/org/traccar/protocol/Gs100ProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/Gs100ProtocolDecoder.java
@@ -110,6 +110,10 @@ public class Gs100ProtocolDecoder extends BaseProtocolDecoder {
position.setSpeed(Integer.parseInt(other.substring(0, 5)));
position.setCourse(Integer.parseInt(other.substring(5, 8)));
+ } else {
+
+ getLastLocation(position, null);
+
}
positions.add(position);