Commit 9c87f0fd authored by michael.simon's avatar michael.simon
Browse files

Correctly catch getShowOnly is null

parent 59ba4751
......@@ -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[] {
......
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