From e08b3e7dec04abfa3f93200203cfd7dd11c71e8d Mon Sep 17 00:00:00 2001 From: Rodrigo Sasaki Date: Thu, 5 Jun 2014 09:24:06 -0300 Subject: [PATCH] flipped comparison operands to avoid NPE --- .../extension/KeycloakAdapterConfigDeploymentProcessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration/as7-eap-subsystem/src/main/java/org/keycloak/subsystem/extension/KeycloakAdapterConfigDeploymentProcessor.java b/integration/as7-eap-subsystem/src/main/java/org/keycloak/subsystem/extension/KeycloakAdapterConfigDeploymentProcessor.java index 483d895f87..dbc402e730 100755 --- a/integration/as7-eap-subsystem/src/main/java/org/keycloak/subsystem/extension/KeycloakAdapterConfigDeploymentProcessor.java +++ b/integration/as7-eap-subsystem/src/main/java/org/keycloak/subsystem/extension/KeycloakAdapterConfigDeploymentProcessor.java @@ -70,7 +70,7 @@ public class KeycloakAdapterConfigDeploymentProcessor implements DeploymentUnitP if (webMetaData == null) return; LoginConfigMetaData loginConfig = webMetaData.getLoginConfig(); - if (loginConfig != null && loginConfig.getAuthMethod().equalsIgnoreCase("KEYCLOAK")) { + if (loginConfig != null && "KEYCLOAK".equalsIgnoreCase(loginConfig.getAuthMethod())) { addValve(webMetaData); } }