aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-03-21 04:57:55 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2017-03-21 04:57:55 +1300
commit04c087935a2bd4b703134d86bbe9456e6930c287 (patch)
treed1520ab58757c1ccf2cb0f28dcd35d5f7ce8f144 /src/org/traccar
parent9ba0e8f826c9edb78beb234192c694b881a4418a (diff)
downloadtrackermap-server-04c087935a2bd4b703134d86bbe9456e6930c287.tar.gz
trackermap-server-04c087935a2bd4b703134d86bbe9456e6930c287.tar.bz2
trackermap-server-04c087935a2bd4b703134d86bbe9456e6930c287.zip
Handle DMT messages without location
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/protocol/DmtProtocolDecoder.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/DmtProtocolDecoder.java b/src/org/traccar/protocol/DmtProtocolDecoder.java
index 4c641f397..6481255e9 100644
--- a/src/org/traccar/protocol/DmtProtocolDecoder.java
+++ b/src/org/traccar/protocol/DmtProtocolDecoder.java
@@ -133,6 +133,10 @@ public class DmtProtocolDecoder extends BaseProtocolDecoder {
}
+ if (position.getFixTime() == null) {
+ getLastLocation(position, position.getDeviceTime());
+ }
+
positions.add(position);
}