diff options
author | Paul Stewart <pstew@google.com> | 2016-06-08 15:36:28 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-06-08 15:36:28 +0000 |
commit | 6da17ca8f26560a6718626ca58a0c5693ace3f67 (patch) | |
tree | 939e8964dc4d176094805d064e5a7ac62a43b426 /service | |
parent | 15a72380b12016eb008ebf25c2846221d216feeb (diff) | |
parent | 96cc486099b6bc342db50e575d27d8eb9f4c09f1 (diff) |
Merge \\\"Perform a null-check in getMatchingConfig\\\" into mnc-dev am: e3c37daf73 am: e180938097
am: 96cc486099
Change-Id: Iae9d523d364079407f500d00f96db951c3d7f994
Diffstat (limited to 'service')
-rw-r--r-- | service/java/com/android/server/wifi/WifiConfigStore.java | 4 |
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 41926b079..fe78b4df1 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(); |