Missing return when no storage provider is found

This commit is contained in:
Mauro Mugnaini 2020-12-16 16:14:50 +01:00
parent 6b0a30c715
commit 29ac081aeb
1 changed files with 1 additions and 0 deletions

View File

@ -156,6 +156,7 @@ public class AvatarImporter extends AbstractClaimMapper {
AvatarStorageProvider avatarStorageProvider = session.getProvider(AvatarStorageProvider.class);
if (avatarStorageProvider == null) {
logger.warn("Cannot perform avatar import ince the avatar storage provider is null");
return;
}
InputStream avatarInputStream = null;
if (ArrayUtils.contains(AvatarImporter.PROVIDERS_WITH_PICTURE_CLAIM, identityProviderAlias)) {