summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorPaul Stewart <pstew@google.com>2016-06-08 15:16:08 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2016-06-08 15:16:08 +0000
commite3c37daf73bf7af0ac951834fabb079cba1e5b9b (patch)
treeba8bb159348d2c708407938d033fb2c8e3eb7893 /service
parent04fdb2ce414b6175aad402fa459b3988a3238e97 (diff)
parent4ab8ee5e3ecfdc107892396178efa9176a72438f (diff)
Merge "Perform a null-check in getMatchingConfig" into mnc-dev
Diffstat (limited to 'service')
-rw-r--r--service/java/com/android/server/wifi/WifiConfigStore.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/service/java/com/android/server/wifi/WifiConfigStore.java b/service/java/com/android/server/wifi/WifiConfigStore.java
index 02ddd0005..dd47b0805 100644
--- a/service/java/com/android/server/wifi/WifiConfigStore.java
+++ b/service/java/com/android/server/wifi/WifiConfigStore.java
@@ -790,7 +790,9 @@ public class WifiConfigStore extends IpConfigStore {
* Find matching network for this scanResult
*/
WifiConfiguration getMatchingConfig(ScanResult scanResult) {
-
+ if (scanResult == null) {
+ return null;
+ }
for (Map.Entry entry : mScanDetailCaches.entrySet()) {
Integer netId = (Integer) entry.getKey();
ScanDetailCache cache = (ScanDetailCache) entry.getValue();