From ce43545ffece6f5377114305199a3c0d650dc298 Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Fri, 15 Jun 2018 15:13:36 +0500 Subject: Fix OverspeedEventHandler with new device --- src/org/traccar/events/OverspeedEventHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3