aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/notification/NotificationSms.java
diff options
context:
space:
mode:
authorIvan Martinez <ivanfmartinez@users.noreply.github.com>2018-04-01 18:22:29 -0300
committerIvan Martinez <ivanfmartinez@users.noreply.github.com>2018-04-01 18:23:00 -0300
commit2891a1a4eee21e6c80b65915d35558c033503047 (patch)
tree9c607179a57caaacf5f44f2c8738bfaa8162ed37 /src/org/traccar/notification/NotificationSms.java
parentbb289a69fa4d292378c5c534e10985be65b2e392 (diff)
downloadtrackermap-server-2891a1a4eee21e6c80b65915d35558c033503047.tar.gz
trackermap-server-2891a1a4eee21e6c80b65915d35558c033503047.tar.bz2
trackermap-server-2891a1a4eee21e6c80b65915d35558c033503047.zip
generalization for notifications processing
Diffstat (limited to 'src/org/traccar/notification/NotificationSms.java')
-rw-r--r--src/org/traccar/notification/NotificationSms.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/notification/NotificationSms.java b/src/org/traccar/notification/NotificationSms.java
index 34d68e174..a8eaff798 100644
--- a/src/org/traccar/notification/NotificationSms.java
+++ b/src/org/traccar/notification/NotificationSms.java
@@ -27,7 +27,7 @@ public final class NotificationSms extends Notificator {
@Override
public void sendAsync(long userId, Event event, Position position) {
User user = Context.getPermissionsManager().getUser(userId);
- if (Context.getSmsManager() != null && user.getPhone() != null) {
+ if (user.getPhone() != null) {
Context.getStatisticsManager().registerSms();
Context.getSmsManager().sendMessageAsync(user.getPhone(),
NotificationFormatter.formatSmsMessage(userId, event, position), false);
@@ -38,7 +38,7 @@ public final class NotificationSms extends Notificator {
public void sendSync(long userId, Event event, Position position) throws SMSException,
InterruptedException {
User user = Context.getPermissionsManager().getUser(userId);
- if (Context.getSmsManager() != null && user.getPhone() != null) {
+ if (user.getPhone() != null) {
Context.getStatisticsManager().registerSms();
Context.getSmsManager().sendMessageSync(user.getPhone(),
NotificationFormatter.formatSmsMessage(userId, event, position), false);