Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
reg-app
Regapp
Commits
53180227
Commit
53180227
authored
Mar 25, 2021
by
michael.simon
Browse files
possible NPE with variable
parent
67a048b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
bwreg-webapp/src/main/java/edu/kit/scc/webreg/bean/DiscoveryLoginBean.java
View file @
53180227
...
...
@@ -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
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment