commit | 74373919d3c10ebfa33c470421d046aa37565691 | [log] [tgz] |
---|---|---|
author | Chris Ye <lzye@google.com> | Thu Feb 24 08:57:34 2022 -0800 |
committer | Chris Ye <lzye@google.com> | Thu Feb 24 18:34:28 2022 -0800 |
tree | 0495d3d99e2907ac0460bca44d04c123c6728a84 | |
parent | 463fa12f2ead5648d4577f30311809761a95ff56 [diff] |
Add check for null config in startIpClient. Protect the null config when current network configuration can not be retrived. Bug: 219394598 Test: atest ClientModeImplTest Change-Id: I27882330164836e0db25eb25fce482ce3774848a
diff --git a/service/java/com/android/server/wifi/ClientModeImpl.java b/service/java/com/android/server/wifi/ClientModeImpl.java index 11906f4..815d369 100644 --- a/service/java/com/android/server/wifi/ClientModeImpl.java +++ b/service/java/com/android/server/wifi/ClientModeImpl.java
@@ -6317,7 +6317,7 @@ } private boolean startIpClient(WifiConfiguration config, boolean isFilsConnection) { - if (mIpClient == null) { + if (mIpClient == null || config == null) { return false; }