diff options
author | 2023-06-21 22:04:37 +0800 | |
---|---|---|
committer | 2023-08-28 08:21:06 +0000 | |
commit | 23bdc16c3b85640f000af3587e34d7ffb93f4123 (patch) | |
tree | ac5002bec1d0aef1b434029c3e723d2c940667cf /libs/androidfw/PathUtils.cpp | |
parent | 933a0c09f80a93709a4bc7f4ab952256ece30eb6 (diff) |
Fix NullPointerException for WifiDisplayController.
Set WifiDisplay to unavailable if p2p device is unavailable,
because the approach of WifiP2pWfdInfo.getWfdInfo() maybe return null,
so we need to do a non-null check to ensure the NPE issue will not
happen.
Bug: 297799091
Test: atest FrameworksWifiApiTests
Change-Id: I06e77719e646a28cc40e1e3d7c45b4f3c9472673
Signed-off-by: jiayongqiang <jiayongqiang@xiaomi.com>
Diffstat (limited to 'libs/androidfw/PathUtils.cpp')
0 files changed, 0 insertions, 0 deletions