Merge "Avoiding NullPointer Exception for user properties in CPID update"

This commit is contained in:
Sarup Dalwani
2023-01-13 17:54:48 +00:00
committed by Android (Google) Code Review

View File

@@ -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,