diff --git a/aware-core/src/main/java/com/aware/Telephony.java b/aware-core/src/main/java/com/aware/Telephony.java index 0346050de..efbf09114 100644 --- a/aware-core/src/main/java/com/aware/Telephony.java +++ b/aware-core/src/main/java/com/aware/Telephony.java @@ -201,7 +201,7 @@ public void onCellLocationChanged(CellLocation location) { } List neighbors = telephonyManager.getNeighboringCellInfo(); - if (neighbors.size() > 0) { + if (neighbors != null && neighbors.size() > 0) { for (NeighboringCellInfo neighbor : neighbors) { rowData = new ContentValues(); rowData.put(GSM_Neighbors_Data.TIMESTAMP, timestamp);