Skip to content

Commit

Permalink
[ugly] Workaround random system_server crash on Huawei.
Browse files Browse the repository at this point in the history
  • Loading branch information
phhusson committed Dec 19, 2017
1 parent 0d9b4c9 commit 7d62779
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,8 @@ public void onFullResult(ScanResult fullScanResult) {
@Override
public void onPnoNetworkFound(ScanResult[] results) {
for (ScanResult result: results) {
mScanDetails.add(ScanResultUtil.toScanDetail(result));
if(result != null && result.informationElements != null)
mScanDetails.add(ScanResultUtil.toScanDetail(result));
}

boolean wasConnectAttempted;
Expand Down

0 comments on commit 7d62779

Please sign in to comment.