Merge "Avoiding NullPointer Exception for user properties in CPID update"
This commit is contained in:
committed by
Android (Google) Code Review
commit
81d4c5589b
@@ -54,7 +54,8 @@ public class CrossProfileIntentFilterHelper {
|
||||
UserProperties currentUserProperties = mUserManagerInternal
|
||||
.getUserProperties(userInfo.id);
|
||||
|
||||
if (currentUserProperties.getUpdateCrossProfileIntentFiltersOnOTA()) {
|
||||
if (currentUserProperties != null
|
||||
&& currentUserProperties.getUpdateCrossProfileIntentFiltersOnOTA()) {
|
||||
int parentUserId = mUserManagerInternal.getProfileParentId(userInfo.id);
|
||||
if (parentUserId != userInfo.id) {
|
||||
clearCrossProfileIntentFilters(userInfo.id,
|
||||
|
||||
Reference in New Issue
Block a user