commit | 75d6c9fce31cebe489e0c07e0ed1a6b895d777d1 | [log] [tgz] |
---|---|---|
author | Arc Wang <arcwang@google.com> | Thu Apr 02 22:21:08 2020 +0800 |
committer | Arc Wang <arcwang@google.com> | Thu Apr 02 22:35:30 2020 +0800 |
tree | 85c5a7fad19ccccbe87928868718be40980cc989 | |
parent | 783b0257ad47075c4a73672328ce063dad473dbf [diff] |
[Wi-Fi] Fix exception when 'Add device' with a Wi-Fi suggestion network WifiEntry#getWifiConfiguration() may return null when WifiEntry#isSaved() is true. Use WifiEntry#canEasyConnect() which checks if WifiEntry#getWifiConfiguration() returns a non-null value. Bug: 153029289 Test: manual Connect to a WPA2 Wi-Fi network, click 'Add device' in Wi-Fi detail page and see if it crashes. Change-Id: Ia15503eea795fdd54826699828f02c9ff95dcefa