diff options
author | Andreas <andreas-huth@freenet.de> | 2020-03-04 21:47:19 +0100 |
---|---|---|
committer | Andreas <andreas-huth@freenet.de> | 2020-03-04 21:47:19 +0100 |
commit | b27e8213f380f3ae8c2b9503e0aaecb55c784271 (patch) | |
tree | 3075f474e8b56a1e815ce50a129bec0718ec41c1 /src/main/java/org | |
parent | e39eaf2e9878fe8e575b525dd2ca747e3f5342fe (diff) | |
download | trackermap-server-b27e8213f380f3ae8c2b9503e0aaecb55c784271.tar.gz trackermap-server-b27e8213f380f3ae8c2b9503e0aaecb55c784271.tar.bz2 trackermap-server-b27e8213f380f3ae8c2b9503e0aaecb55c784271.zip |
correction for travis-ci
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/traccar/notificators/NotificatorPushover.java | 12 |
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; |