aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/ProtocolTest.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 /test/org/traccar/ProtocolTest.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 'test/org/traccar/ProtocolTest.java')
-rw-r--r--test/org/traccar/ProtocolTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/org/traccar/ProtocolTest.java b/test/org/traccar/ProtocolTest.java
index 20e033e3b..955e0b788 100644
--- a/test/org/traccar/ProtocolTest.java
+++ b/test/org/traccar/ProtocolTest.java
@@ -178,7 +178,7 @@ public class ProtocolTest extends BaseTest {
Assert.assertFalse("no attributes", attributes.isEmpty());
}
- if (position.getNetwork() != null) {
+ if (position.getNetwork() != null && position.getNetwork().getCellTowers() != null) {
for (CellTower cellTower : position.getNetwork().getCellTowers()) {
checkInteger(cellTower.getMobileCountryCode(), 0, 999);
checkInteger(cellTower.getMobileNetworkCode(), 0, 999);