diff options
author | Abyss777 <abyss@fox5.ru> | 2016-06-23 16:17:25 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-06-23 16:17:25 +0500 |
commit | bd2e0fdc6fe222316e9e740aa265b6d132d407b6 (patch) | |
tree | 0e146fde0b2a7556c380a4b715cb88e42b97d8cb /src/org/traccar/database/ConnectionManager.java | |
parent | a445733519b4b38b52b03fbb63a55c7270cb9221 (diff) | |
download | trackermap-server-bd2e0fdc6fe222316e9e740aa265b6d132d407b6.tar.gz trackermap-server-bd2e0fdc6fe222316e9e740aa265b6d132d407b6.tar.bz2 trackermap-server-bd2e0fdc6fe222316e9e740aa265b6d132d407b6.zip |
Added possibility to disable event and geofence subsystems
Diffstat (limited to 'src/org/traccar/database/ConnectionManager.java')
-rw-r--r-- | src/org/traccar/database/ConnectionManager.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/org/traccar/database/ConnectionManager.java b/src/org/traccar/database/ConnectionManager.java index 8a1debdfa..8796673b1 100644 --- a/src/org/traccar/database/ConnectionManager.java +++ b/src/org/traccar/database/ConnectionManager.java @@ -94,7 +94,9 @@ public class ConnectionManager { if (status.equals(Device.STATUS_ONLINE)) { event.setType(Event.TYPE_DEVICE_ONLINE); } - Context.getNotificationManager().updateEvent(event, null); + if (Context.getNotificationManager() != null) { + Context.getNotificationManager().updateEvent(event, null); + } } device.setStatus(status); |