[SYNCOPE-1333] fix build
authorFrancesco Chicchiriccò <ilgrosso@apache.org>
Tue, 10 Jul 2018 09:00:25 +0000 (11:00 +0200)
committerFrancesco Chicchiriccò <ilgrosso@apache.org>
Tue, 10 Jul 2018 09:00:36 +0000 (11:00 +0200)
client/console/src/main/java/org/apache/syncope/client/console/wizards/any/VirAttrs.java

index 79d58da..042e61e 100644 (file)
@@ -147,7 +147,7 @@ public class VirAttrs extends AbstractAttrs<VirSchemaTO> {
         List<AttrTO> attrs = new ArrayList<>();
 
         Map<String, AttrTO> attrMap = EntityTOUtils.buildAttrMap(
-                GroupableRelatableTO.class.cast(anyTO).getMembership(membershipTO.getGroupKey()).getVirAttrs());
+                GroupableRelatableTO.class.cast(anyTO).getMembership(membershipTO.getGroupKey()).get().getVirAttrs());
 
         attrs.addAll(membershipSchemas.get(membershipTO.getGroupKey()).values().stream().map(schema -> {
             AttrTO attrTO = new AttrTO();