summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorPaul Stewart <pstew@google.com>2016-06-08 18:14:25 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-06-08 18:14:25 +0000
commitc405929e28fad4ef2325a0f798b14536382f2b4d (patch)
tree30a2159468682cbe0970c4644c40abef9eb4ed4d /service
parentad0d0a48952e025838992b6a1b0cd143f1915ced (diff)
parent073c371dbc5b361bf5f6651ed5f6b471012bd673 (diff)
resolve merge conflicts of 6da17ca to nyc-dev
am: 073c371dbc Change-Id: I9cab61eae43744280cbb6f2f299141a6a088e683
Diffstat (limited to 'service')
-rw-r--r--service/java/com/android/server/wifi/WifiConfigManager.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/service/java/com/android/server/wifi/WifiConfigManager.java b/service/java/com/android/server/wifi/WifiConfigManager.java
index e2183e3ab..4c930a667 100644
--- a/service/java/com/android/server/wifi/WifiConfigManager.java
+++ b/service/java/com/android/server/wifi/WifiConfigManager.java
@@ -516,7 +516,9 @@ public class WifiConfigManager {
* 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();