aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-03-19 23:07:09 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-03-19 23:07:09 +1300
commitd11137df0802863b6148efd9e2a6d9fb1f9c2ee6 (patch)
treef3e3eab6090c56579acbc30a3cef72ae222ebae5 /src/org
parent222196c9da6644bf49ab125017b5ba9b5d99a443 (diff)
downloadtrackermap-server-d11137df0802863b6148efd9e2a6d9fb1f9c2ee6.tar.gz
trackermap-server-d11137df0802863b6148efd9e2a6d9fb1f9c2ee6.tar.bz2
trackermap-server-d11137df0802863b6148efd9e2a6d9fb1f9c2ee6.zip
Support null position id values
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/TrackerEventHandler.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/TrackerEventHandler.java b/src/org/traccar/TrackerEventHandler.java
index 32e24c971..39c70ccc7 100644
--- a/src/org/traccar/TrackerEventHandler.java
+++ b/src/org/traccar/TrackerEventHandler.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2012 Anton Tananaev (anton.tananaev@gmail.com)
+ * Copyright 2012 - 2015 Anton Tananaev (anton.tananaev@gmail.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -74,7 +74,7 @@ public class TrackerEventHandler extends IdleStateAwareChannelHandler {
lastPostition = position;
}
}
- if (id != null && lastPostition != null) {
+ if (lastPostition != null) {
try {
dataManager.updateLatestPosition(lastPostition, id);
} catch (Exception error) {