diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-03-19 23:07:09 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-03-19 23:07:09 +1300 |
commit | d11137df0802863b6148efd9e2a6d9fb1f9c2ee6 (patch) | |
tree | f3e3eab6090c56579acbc30a3cef72ae222ebae5 /src | |
parent | 222196c9da6644bf49ab125017b5ba9b5d99a443 (diff) | |
download | trackermap-server-d11137df0802863b6148efd9e2a6d9fb1f9c2ee6.tar.gz trackermap-server-d11137df0802863b6148efd9e2a6d9fb1f9c2ee6.tar.bz2 trackermap-server-d11137df0802863b6148efd9e2a6d9fb1f9c2ee6.zip |
Support null position id values
Diffstat (limited to 'src')
-rw-r--r-- | src/org/traccar/TrackerEventHandler.java | 4 |
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) { |