Merge pull request #2882 from nextcloud/bgfix/noid/avoidNpeLoadAvatarImage

Avoid NPE in loadAvatarImage
This commit is contained in:
Andy Scherzinger 2023-03-23 12:33:11 +01:00 committed by GitHub
commit 45deb7fec5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -453,6 +453,7 @@ public class DisplayUtils {
}
public static void loadAvatarImage(User user, ImageView avatarImageView, boolean deleteCache) {
if (user != null && avatarImageView != null) {
String avatarId;
if (!TextUtils.isEmpty(user.getUserId())) {
avatarId = user.getUserId();
@ -468,6 +469,7 @@ public class DisplayUtils {
}
}
}
}
public static @StringRes
int getSortOrderStringId(FileSortOrder sortOrder) {