aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {