diff options
author | Anton Tananaev <anton@traccar.org> | 2023-07-09 06:32:18 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2023-07-09 06:32:18 -0700 |
commit | 8790fed8864f9ce41fe219f8a757cc9dedec272d (patch) | |
tree | 16b60314c1f1e08143879ff25b7c4abb518089b9 /src/main/java/org | |
parent | 5b5f5d04863d3ca766c66441d8e1a8925e3e3d41 (diff) | |
download | trackermap-server-8790fed8864f9ce41fe219f8a757cc9dedec272d.tar.gz trackermap-server-8790fed8864f9ce41fe219f8a757cc9dedec272d.tar.bz2 trackermap-server-8790fed8864f9ce41fe219f8a757cc9dedec272d.zip |
Check enabled notification types
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/traccar/notification/NotificatorManager.java | 2 |
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; |