Merge "Fix NPE in user settings." into nyc-dev am: e69d754865
am: 1d5fbf6672
* commit '1d5fbf66729b76485362beb26771592370bdef7b':
Fix NPE in user settings.
Change-Id: I80b5e7c37b158ed03f43eeef78b4359ed107b730
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