aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/WatchProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-01-16 06:00:14 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2017-01-16 05:00:14 +1300
commit7b43de6883d317c57e4cb0f0be6caf0b23297189 (patch)
tree6707244984e9ba66ce940f6a2151360fdc4e233c /src/org/traccar/protocol/WatchProtocolDecoder.java
parent0885b4c200600ff320af9a77eacda5fc4d63c795 (diff)
downloadtrackermap-server-7b43de6883d317c57e4cb0f0be6caf0b23297189.tar.gz
trackermap-server-7b43de6883d317c57e4cb0f0be6caf0b23297189.tar.bz2
trackermap-server-7b43de6883d317c57e4cb0f0be6caf0b23297189.zip
Only set network if not empty
Diffstat (limited to 'src/org/traccar/protocol/WatchProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/WatchProtocolDecoder.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/WatchProtocolDecoder.java b/src/org/traccar/protocol/WatchProtocolDecoder.java
index 0f76f721d..4a48fe7b6 100644
--- a/src/org/traccar/protocol/WatchProtocolDecoder.java
+++ b/src/org/traccar/protocol/WatchProtocolDecoder.java
@@ -124,7 +124,9 @@ public class WatchProtocolDecoder extends BaseProtocolDecoder {
}
}
- position.setNetwork(network);
+ if (network.getCellTowers() != null || network.getWifiAccessPoints() != null) {
+ position.setNetwork(network);
+ }
}
@Override