diff --git a/service/java/com/android/server/wifi/WifiConnectivityManager.java b/service/java/com/android/server/wifi/WifiConnectivityManager.java index f45d17b41..274e24724 100644 --- a/service/java/com/android/server/wifi/WifiConnectivityManager.java +++ b/service/java/com/android/server/wifi/WifiConnectivityManager.java @@ -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;