aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJed <Jed@192.168.1.100>2014-09-09 13:41:28 +0800
committerJed <Jed@192.168.1.100>2014-09-09 13:41:28 +0800
commitcad3601db6cacc090783f7e53dafcc71717cb196 (patch)
tree9e318d9b34c5247daf91872f9db15092c8fe6dfe /src
parent237cfd39818dbb588952b0c291fddea0658fe5f8 (diff)
downloadtrackermap-server-cad3601db6cacc090783f7e53dafcc71717cb196.tar.gz
trackermap-server-cad3601db6cacc090783f7e53dafcc71717cb196.tar.bz2
trackermap-server-cad3601db6cacc090783f7e53dafcc71717cb196.zip
Added null check for lastPostition
Diffstat (limited to 'src')
-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) {