[KEYCLOAK-11765] Changed to jdk7 compliant code

This commit is contained in:
Peter Sönder 2019-10-18 09:13:41 +02:00 committed by Stian Thorgersen
parent 6c83b36360
commit 68fa37b4cd

View file

@ -336,7 +336,7 @@ public class OAuthRequestAuthenticator {
} catch (ServerRequest.HttpFailure failure) {
log.error("failed to turn code into token");
log.error("status from server: " + failure.getStatus());
if (failure.getError() != null && !failure.getError().isBlank()) {
if (failure.getError() != null && !failure.getError().trim().isEmpty()) {
log.error(" " + failure.getError());
}
return challenge(403, OIDCAuthenticationError.Reason.CODE_TO_TOKEN_FAILURE, null);