Skip to content
This repository has been archived by the owner on Jun 18, 2023. It is now read-only.

Commit

Permalink
- Fix exception when neighbors is NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
JulioV authored Mar 15, 2020
1 parent f4c0ac0 commit aa2ea4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aware-core/src/main/java/com/aware/Telephony.java
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ public void onCellLocationChanged(CellLocation location) {
}

List<NeighboringCellInfo> 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);
Expand Down

0 comments on commit aa2ea4c

Please sign in to comment.