Exception while trying to load custom realm

Description

2019-06-23_07:05:41.76815 07:06:05,309 ERROR [org.keycloak.services.error.KeycloakErrorHandler] (default task-1) Uncaught server error: java.lang.NullPointerException
2019-06-23_07:06:05.31316 at java.util.regex.Matcher.getTextLength(Matcher.java:1283)
2019-06-23_07:06:05.31316 at java.util.regex.Matcher.reset(Matcher.java:309)
2019-06-23_07:06:05.31317 at java.util.regex.Matcher.<init>(Matcher.java:229)
2019-06-23_07:06:05.31317 at java.util.regex.Pattern.matcher(Pattern.java:1093)
2019-06-23_07:06:05.31317 at org.aerobase.keycloak.spi.CreateRealmListenerProvider$AccountNameMatcher.matches(CreateRealmListenerProvider.java:192)
2019-06-23_07:06:05.31318 at org.aerobase.keycloak.spi.CreateRealmListenerProvider.toRealmName(CreateRealmListenerProvider.java:185)
2019-06-23_07:06:05.31318 at org.aerobase.theme.ExtendingThemeManager.nameSet(ExtendingThemeManager.java:58)
2019-06-23_07:06:05.31319 at org.keycloak.theme.DefaultThemeManager.nameSet(DefaultThemeManager.java:32)
2019-06-23_07:06:05.31319 at org.keycloak.services.resources.admin.info.ServerInfoAdminResource.setThemes(ServerInfoAdminResource.java:169)
2019-06-23_07:06:05.31319 at org.keycloak.services.resources.admin.info.ServerInfoAdminResource.getInfo(ServerInfoAdminResource.java:98)
2019-06-23_07:06:05.31320 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2019-06-23_07:06:05.31321 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
2019-06-23_07:06:05.31321 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2019-06-23_07:06:05.31322 at java.lang.reflect.Method.invoke(Method.java:498)
2019-06-23_07:06:05.31322 at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:140)
2019-06-23_07:06:05.31322 at org.jboss.resteasy.core.ResourceMethodInvoker.internalInvokeOnTarget(ResourceMethodInvoker.java:509)
2019-06-23_07:06:05.31323 at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTargetAfterFilter(ResourceMethodInvoker.java:399)
2019-06-23_07:06:05.31323 at org.jboss.resteasy.core.ResourceMethodInvoker.lambda$invokeOnTarget$0(ResourceMethodInvoker.java:363)
2019-06-23_07:06:05.31323 at org.jboss.resteasy.core.interception.PreMatchContainerRequestContext.filter(PreMatchContainerRequestContext.java:358)
2019-06-23_07:06:05.31324 at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:365)

Environment

None

Status

Assignee

Yaniv Marom Nachumi

Reporter

Yaniv Marom Nachumi

Labels

None

Components

Fix versions

Priority

Medium