Fix NPE when creates wifi tracker
When sets pin lock and reboot phone, SystemUI could not get WifiManager when creates WifiTracker, then NullPointerException will happen.So add null pointer checking and avoid creating WifiTracker for encrypted device to fix this exception. Bug: 109588864 Test: manual,set pin lock and reboot phone,systemUI can restart normally. Change-Id: I9bf5d52fa0b1efd99d1f32686f12b5c99765b0c2
Loading
Please register or sign in to comment