From 85bd0c6572d576aff03bdd80551117a6941c883c Mon Sep 17 00:00:00 2001 From: June Date: Tue, 31 Mar 2026 15:54:39 +0200 Subject: [PATCH] only perform further validation, if config string isn't null For the configAttributeSlug the further validation fails ugly otherwise and there's generally no need to do further validation, if a config string is null. --- .../attribute_endpoints/AdminUiPage.java | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/attribute-endpoints-provider/src/main/java/de/ccc/hamburg/keycloak/attribute_endpoints/AdminUiPage.java b/attribute-endpoints-provider/src/main/java/de/ccc/hamburg/keycloak/attribute_endpoints/AdminUiPage.java index f0cebc1..cfd26b6 100644 --- a/attribute-endpoints-provider/src/main/java/de/ccc/hamburg/keycloak/attribute_endpoints/AdminUiPage.java +++ b/attribute-endpoints-provider/src/main/java/de/ccc/hamburg/keycloak/attribute_endpoints/AdminUiPage.java @@ -57,9 +57,7 @@ public class AdminUiPage implements UiPageProvider, UiPageProviderFactory g.getName().equals(configAttributeGroup))) { + } else if (!upconfig.getGroups().stream().anyMatch(g -> g.getName().equals(configAttributeGroup))) { hasError = true; errorString += " • [Attribute Group] does not exist\n"; }