Fix NPE in user settings.
Bug: 28337026 Change-Id: I437874e8dd605b9a19318aafecf292303ee3ad58
This commit is contained in:
@@ -751,6 +751,9 @@ public class UserSettings extends SettingsPreferenceFragment
|
|||||||
}
|
}
|
||||||
pref.setTitle(user.name);
|
pref.setTitle(user.name);
|
||||||
}
|
}
|
||||||
|
if (pref == null) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (!isInitialized(user)) {
|
if (!isInitialized(user)) {
|
||||||
if (user.isRestricted()) {
|
if (user.isRestricted()) {
|
||||||
pref.setSummary(R.string.user_summary_restricted_not_set_up);
|
pref.setSummary(R.string.user_summary_restricted_not_set_up);
|
||||||
|
Reference in New Issue
Block a user