New Storage: Testsuite fails when JPA Map storage is enabled for groups

Closes #11369
This commit is contained in:
vramik 2022-04-21 09:55:08 +02:00 committed by Hynek Mlnařík
parent f48d468641
commit 3d1118223b

View file

@ -67,12 +67,7 @@ public class MapGroupAdapter extends AbstractGroupModel<MapGroupEntity> {
@Override
public String getFirstAttribute(String name) {
List<String> attributeValues = this.entity.getAttribute(name);
if (attributeValues == null) {
return null;
}
return attributeValues.get(0);
return getAttributeStream(name).findFirst().orElse(null);
}
@Override