[KEYCLOAK-8101] Return just cached deployment to prevent NPE

This commit is contained in:
Grzegorz Grzybek 2018-08-20 18:36:56 +02:00 committed by Hynek Mlnařík
parent b606a25684
commit fdc9882709

View file

@ -87,6 +87,7 @@ public class PathBasedKeycloakConfigResolver implements KeycloakConfigResolver {
if (!cacheConfiguration(pathFragment, configuration)) {
throw new IllegalStateException("Not able to read the file " + configuration);
}
deployment = getCachedDeployment(pathFragment);
}
return deployment;