KEYCLOAK-12436 Fixes NPE in QuarkusCacheManagerProvider when default settings are used
org.keycloak.provider.quarkus.QuarkusCacheManagerProvider#loadDefaultConfiguration fails with an NPE (while trying to unbox null into a boolean) if the current config does not contain "clustered". This happens when quarkus:dev mode is used without parameters.
This commit is contained in:
parent
0f3e0f4d4e
commit
6591bdcdf5
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ public final class QuarkusCacheManagerProvider implements ManagedCacheManagerPro
|
||||||
}
|
}
|
||||||
|
|
||||||
private InputStream loadDefaultConfiguration(Config.Scope config) throws FileNotFoundException {
|
private InputStream loadDefaultConfiguration(Config.Scope config) throws FileNotFoundException {
|
||||||
if (config.getBoolean("clustered")) {
|
if (config.getBoolean("clustered", false)) {
|
||||||
log.debugf("Using default clustered cache configuration.");
|
log.debugf("Using default clustered cache configuration.");
|
||||||
return FileLookupFactory.newInstance()
|
return FileLookupFactory.newInstance()
|
||||||
.lookupFileStrict("default-clustered-cache.xml", Thread.currentThread().getContextClassLoader());
|
.lookupFileStrict("default-clustered-cache.xml", Thread.currentThread().getContextClassLoader());
|
||||||
|
|
Loading…
Reference in a new issue