Files
packages_apps_Settings/src/com/android
Fabian Leutenegger 82754f2212 Settings: Fix potential NPE in WifiTetherSecurityPreferenceController
* if updateDisplay() gets called but mShouldHidePreference was set to true during init in the constructor, [1] will cause an npe due to securityNames and securityValues being null
 * adding that check as well to updateDisplay() will prevent this from happening

[1]:
for (int i = 0; i < securityNames.length; i++) {
mSecurityMap.put(Integer.parseInt(securityValues[i]), securityNames[i]);
}

Change-Id: Ib9dec499b7aebcfa424f2dd9b310317d4fb0eaf0
2025-12-10 00:41:26 +09:00
..