aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/Context.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/Context.java')
-rw-r--r--src/org/traccar/Context.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/org/traccar/Context.java b/src/org/traccar/Context.java
index 03e4635b6..d859e91bb 100644
--- a/src/org/traccar/Context.java
+++ b/src/org/traccar/Context.java
@@ -242,7 +242,11 @@ public final class Context {
switch (type) {
case "mozilla":
- locationProvider = new MozillaLocationProvider();
+ if (key != null) {
+ locationProvider = new MozillaLocationProvider(key);
+ } else {
+ locationProvider = new MozillaLocationProvider();
+ }
break;
default:
locationProvider = new OpenCellIdLocationProvider(key);