Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 23bdc16c authored by jiayongqiang's avatar jiayongqiang Committed by yongqiang jia
Browse files

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: default avatarjiayongqiang <jiayongqiang@xiaomi.com>
parent 933a0c09
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment