Commit 53180227 authored by michael.simon's avatar michael.simon
Browse files

possible NPE with variable

parent 67a048b8
......@@ -138,6 +138,8 @@ public class DiscoveryLoginBean implements Serializable {
}
if (! initialized) {
storeIdpSelection = false;
federationList = federationBean.getFederationList();
if (federationList == null || federationList.size() == 0) {
messageGenerator.addErrorMessage("Das SAML Subsystem ist noch nicht konfiguriert");
......@@ -174,7 +176,7 @@ public class DiscoveryLoginBean implements Serializable {
sessionManager.setSpId(spConfig.getId());
sessionManager.setIdpId(selectedIdp.getId());
if (storeIdpSelection) {
if (storeIdpSelection != null && storeIdpSelection) {
cookieHelper.setCookie("preselect_idp", selectedIdp.getId().toString(), 356 * 24 * 3600);
}
else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment