Skip to content
Snippets Groups Projects
Commit 53180227 authored by Michael Simon's avatar Michael Simon
Browse files

possible NPE with variable

parent 67a048b8
No related branches found
Tags 2.7.3
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment