diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-06-16 09:47:52 +1200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-16 09:47:52 +1200 |
commit | 95f20c6803c03d31ef36cf129702e701121d71a2 (patch) | |
tree | 0092715703a17d0bd3c2db0aef42e694ee7691be /src | |
parent | 54cbcf9acf0a6f99126562ae5e5dd72e91175b77 (diff) | |
parent | ce43545ffece6f5377114305199a3c0d650dc298 (diff) | |
download | trackermap-server-95f20c6803c03d31ef36cf129702e701121d71a2.tar.gz trackermap-server-95f20c6803c03d31ef36cf129702e701121d71a2.tar.bz2 trackermap-server-95f20c6803c03d31ef36cf129702e701121d71a2.zip |
Merge pull request #3937 from Abyss777/fix_overspeed_geofence
Fix OverspeedEventHandler with new device
Diffstat (limited to 'src')
-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) { |