<div dir="ltr">Hi,<div><br></div><div>I was trying to deploy some of my company&#39;s applications on keycloak, and in one of them I got this error:</div><div><br></div><div><div>Caused by: java.lang.NullPointerException</div>
<div><span class="" style="white-space:pre">        </span>at org.keycloak.subsystem.extension.KeycloakAdapterConfigDeploymentProcessor.deploy(KeycloakAdapterConfigDeploymentProcessor.java:73)</div><div><span class="" style="white-space:pre">        </span>at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]</div>
<div><span class="" style="white-space:pre">        </span>... 5 more</div><div><br></div><div>I went to investigate and I found that on line 73 of KeycloakAdapterConfigDeploymentProcessor there was this:</div><div><br></div><div>
<font face="courier new, monospace">loginConfig.getAuthMethod().equalsIgnoreCase(&quot;KEYCLOAK&quot;)</font></div><div><br></div><div>and I did some digging and it happens that in this particular project, there is no auth-method identified on web.xml, so loginConfig.getAuthMethod returned null.</div>
<div><br></div><div>All I did was change the comparison to this:</div><div><br></div><div><font face="courier new, monospace">&quot;KEYCLOAK&quot;.equalsIgnoreCase(loginConfig.getAuthMethod())</font><br></div><div><br></div>
<div>And it all works. I don&#39;t know if this defines a problem in the scope of your project, but it would be good to inform you</div><div><br></div><div><br></div>-- <br><div dir="ltr"><font face="Times New Roman">Rodrigo Sasaki</font><div>
</div></div>
</div></div>