aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/traccar')
-rw-r--r--src/main/java/org/traccar/notificators/NotificatorPushover.java12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/main/java/org/traccar/notificators/NotificatorPushover.java b/src/main/java/org/traccar/notificators/NotificatorPushover.java
index ae48bd46a..f289e464a 100644
--- a/src/main/java/org/traccar/notificators/NotificatorPushover.java
+++ b/src/main/java/org/traccar/notificators/NotificatorPushover.java
@@ -116,11 +116,11 @@ public class NotificatorPushover extends Notificator {
if (properties.getProperty("notificator.pushover.device") != null) {
device = properties.getProperty("notificator.pushover.device");
}
- if (properties.getProperty("notificator.pushover.title") != null) {
+ if (properties.getProperty("notificator.pushover.title") != null) {
title = properties.getProperty("notificator.pushover.title");
}
- }
-
+ }
+
if (token == null) {
LOGGER.warn("Pushover token not found");
return;
@@ -131,11 +131,13 @@ public class NotificatorPushover extends Notificator {
return;
}
- if (device == null)
+ if (device == null) {
device = "";
+ }
- if (title == null)
+ if (title == null) {
title = "";
+ }
Message message = new Message();
message.token = token;