Skip to content

Commit 19de473

Browse files
Replaced empty array with null when config-key absent
See #59 Signed-off-by: Thomas Darimont <[email protected]>
1 parent 4bc9155 commit 19de473

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

embedded-keycloak-server-spring-boot-support/src/main/java/com/github/thomasdarimont/keycloak/embedded/support/SpringBootConfigProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public String get(String key, String defaultValue) {
8787
public String[] getArray(String key) {
8888
Object obj = getObject(key, null);
8989
if (obj == null) {
90-
return new String[0];
90+
return null;
9191
}
9292

9393
// TODO find better way to parse config yaml into a list instead of a LinkedHashMap in the first place

0 commit comments

Comments
 (0)