aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-04-17 22:54:51 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2017-04-17 22:54:51 +1200
commit546d09f050c4ccfe5021a31e480bad9e57006ecf (patch)
treedfb7429395e8e8899fab62f4d447bc5f4b037c9d /src
parentacfff6030fb83eab523aa84a48252b391eb6c9d9 (diff)
downloadtrackermap-server-546d09f050c4ccfe5021a31e480bad9e57006ecf.tar.gz
trackermap-server-546d09f050c4ccfe5021a31e480bad9e57006ecf.tar.bz2
trackermap-server-546d09f050c4ccfe5021a31e480bad9e57006ecf.zip
Fix geofence manager crash
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/Context.java5
1 files changed, 1 insertions, 4 deletions
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",