From 546d09f050c4ccfe5021a31e480bad9e57006ecf Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 17 Apr 2017 22:54:51 +1200 Subject: Fix geofence manager crash --- src/org/traccar/Context.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src') diff --git a/src/org/traccar/Context.java b/src/org/traccar/Context.java index 1a35a2cb4..348b7edc2 100644 --- a/src/org/traccar/Context.java +++ b/src/org/traccar/Context.java @@ -277,12 +277,9 @@ public final class Context { connectionManager = new ConnectionManager(); - if (config.getBoolean("event.geofenceHandler")) { + if (config.getBoolean("event.enable")) { geofenceManager = new GeofenceManager(dataManager); calendarManager = new CalendarManager(dataManager); - } - - if (config.getBoolean("event.enable")) { notificationManager = new NotificationManager(dataManager); Properties velocityProperties = new Properties(); velocityProperties.setProperty("file.resource.loader.path", -- cgit v1.2.3