Spotbugs prevent NPR deference

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2022-12-28 12:57:24 +01:00
parent 08936279b6
commit 7b86b02c21
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -125,9 +125,9 @@ public class AdvancedUserItem extends AbstractFlexibleItem<AdvancedUserItem.User
} }
} }
if (user != null && user.getBaseUrl() != null && if (user != null &&
user.getBaseUrl().startsWith("http://") || user.getBaseUrl() != null &&
user.getBaseUrl().startsWith("https://")) { (user.getBaseUrl().startsWith("http://") || user.getBaseUrl().startsWith("https://"))) {
ImageViewExtensionsKt.loadAvatar(holder.binding.userIcon, user, participant.getCalculatedActorId(), true); ImageViewExtensionsKt.loadAvatar(holder.binding.userIcon, user, participant.getCalculatedActorId(), true);
} }
} }