diff options
author | Abyss777 <abyss@fox5.ru> | 2018-06-15 15:13:36 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2018-06-15 15:13:36 +0500 |
commit | ce43545ffece6f5377114305199a3c0d650dc298 (patch) | |
tree | 0092715703a17d0bd3c2db0aef42e694ee7691be | |
parent | 54cbcf9acf0a6f99126562ae5e5dd72e91175b77 (diff) | |
download | trackermap-server-ce43545ffece6f5377114305199a3c0d650dc298.tar.gz trackermap-server-ce43545ffece6f5377114305199a3c0d650dc298.tar.bz2 trackermap-server-ce43545ffece6f5377114305199a3c0d650dc298.zip |
Fix OverspeedEventHandler with new device
-rw-r--r-- | src/org/traccar/events/OverspeedEventHandler.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/events/OverspeedEventHandler.java b/src/org/traccar/events/OverspeedEventHandler.java index aed79a2f5..4f9a35793 100644 --- a/src/org/traccar/events/OverspeedEventHandler.java +++ b/src/org/traccar/events/OverspeedEventHandler.java @@ -117,7 +117,7 @@ public class OverspeedEventHandler extends BaseEventHandler { double geofenceSpeedLimit = 0; long overspeedGeofenceId = 0; - if (Context.getGeofenceManager() != null) { + if (Context.getGeofenceManager() != null && device.getGeofenceIds() != null) { for (long geofenceId : device.getGeofenceIds()) { Geofence geofence = Context.getGeofenceManager().getById(geofenceId); if (geofence != null) { |