diff options
author | Jed <Jed@192.168.1.100> | 2014-09-09 13:41:28 +0800 |
---|---|---|
committer | Jed <Jed@192.168.1.100> | 2014-09-09 13:41:28 +0800 |
commit | cad3601db6cacc090783f7e53dafcc71717cb196 (patch) | |
tree | 9e318d9b34c5247daf91872f9db15092c8fe6dfe /src/org/traccar | |
parent | 237cfd39818dbb588952b0c291fddea0658fe5f8 (diff) | |
download | trackermap-server-cad3601db6cacc090783f7e53dafcc71717cb196.tar.gz trackermap-server-cad3601db6cacc090783f7e53dafcc71717cb196.tar.bz2 trackermap-server-cad3601db6cacc090783f7e53dafcc71717cb196.zip |
Added null check for lastPostition
Diffstat (limited to 'src/org/traccar')
-rw-r--r-- | src/org/traccar/TrackerEventHandler.java | 2 |
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) { |