Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
reg-app
Regapp
Commits
9c87f0fd
Commit
9c87f0fd
authored
Jan 07, 2021
by
michael.simon
Browse files
Correctly catch getShowOnly is null
parent
59ba4751
Changes
1
Hide whitespace changes
Inline
Side-by-side
bwreg-webapp/src/main/java/edu/kit/scc/webreg/bean/RegisterServiceBean.java
View file @
9c87f0fd
...
...
@@ -277,10 +277,17 @@ public class RegisterServiceBean implements Serializable {
logger
.
debug
(
"testing all checkboxes"
);
for
(
PolicyHolder
ph
:
policyHolderList
)
{
if
((!
ph
.
getPolicy
().
getShowOnly
())
&&
(!
ph
.
getChecked
()))
{
if
(
ph
.
getPolicy
()
!=
null
&&
ph
.
getPolicy
().
getShowOnly
())
{
logger
.
debug
(
"Policy {} in Service {} is just for show"
,
ph
.
getPolicy
().
getId
(),
service
.
getId
());
}
else
if
(!
ph
.
getChecked
())
{
logger
.
debug
(
"Policy {} in Service {} is not checked"
,
ph
.
getPolicy
().
getId
(),
service
.
getId
());
messageGenerator
.
addWarningMessage
(
"need_check"
,
"Zustimmung fehlt!"
,
"Sie müssen allen Nutzungbedingungen zustimmen."
);
return
null
;
}
else
{
logger
.
debug
(
"Policy {} in Service {} is checked"
,
ph
.
getPolicy
().
getId
(),
service
.
getId
());
}
}
logger
.
debug
(
"identity {} with user {} wants to register to service {} using bean {}"
,
new
Object
[]
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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