aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/Context.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/org/traccar/Context.java b/src/org/traccar/Context.java
index f1fe443ed..4e6055174 100644
--- a/src/org/traccar/Context.java
+++ b/src/org/traccar/Context.java
@@ -94,7 +94,9 @@ public class Context {
Log.setupLogger(config);
}
- dataManager = new DataManager(config);
+ if (config.hasKey("database.url")) {
+ dataManager = new DataManager(config);
+ }
identityManager = dataManager;
connectionManager = new ConnectionManager(dataManager);