aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-06-16 09:47:52 +1200
committerGitHub <noreply@github.com>2018-06-16 09:47:52 +1200
commit95f20c6803c03d31ef36cf129702e701121d71a2 (patch)
tree0092715703a17d0bd3c2db0aef42e694ee7691be /src/org
parent54cbcf9acf0a6f99126562ae5e5dd72e91175b77 (diff)
parentce43545ffece6f5377114305199a3c0d650dc298 (diff)
downloadtrackermap-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/org')
-rw-r--r--src/org/traccar/events/OverspeedEventHandler.java2
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) {