aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/TrackerEventHandler.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/TrackerEventHandler.java b/src/org/traccar/TrackerEventHandler.java
index f7858fea4..5387074dc 100644
--- a/src/org/traccar/TrackerEventHandler.java
+++ b/src/org/traccar/TrackerEventHandler.java
@@ -75,7 +75,7 @@ public class TrackerEventHandler extends IdleStateAwareChannelHandler {
lastPostition = position;
}
}
- if (id != null) {
+ if (id != null && lastPostition != null) {
try {
dataManager.updateLatestPosition(lastPostition, id);
} catch (Exception error) {