aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-07-09 06:32:18 -0700
committerAnton Tananaev <anton@traccar.org>2023-07-09 06:32:18 -0700
commit8790fed8864f9ce41fe219f8a757cc9dedec272d (patch)
tree16b60314c1f1e08143879ff25b7c4abb518089b9
parent5b5f5d04863d3ca766c66441d8e1a8925e3e3d41 (diff)
downloadtrackermap-server-8790fed8864f9ce41fe219f8a757cc9dedec272d.tar.gz
trackermap-server-8790fed8864f9ce41fe219f8a757cc9dedec272d.tar.bz2
trackermap-server-8790fed8864f9ce41fe219f8a757cc9dedec272d.zip
Check enabled notification types
-rw-r--r--src/main/java/org/traccar/notification/NotificatorManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/notification/NotificatorManager.java b/src/main/java/org/traccar/notification/NotificatorManager.java
index c3ee7b480..b6ee760f3 100644
--- a/src/main/java/org/traccar/notification/NotificatorManager.java
+++ b/src/main/java/org/traccar/notification/NotificatorManager.java
@@ -66,7 +66,7 @@ public class NotificatorManager {
public Notificator getNotificator(String type) {
var clazz = NOTIFICATORS_ALL.get(type);
- if (clazz != null) {
+ if (clazz != null && types.contains(type)) {
var notificator = injector.getInstance(clazz);
if (notificator != null) {
return notificator;