Skip to content

Commit

Permalink
WUI: Fixed null pointer in registrar mail validator
Browse files Browse the repository at this point in the history
  • Loading branch information
zlamalp committed Dec 5, 2019
1 parent e1cf33c commit 75d5002
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ public boolean validateLocal(ValidatedEmail mail) {
// check which mails can be really trusted
ArrayList<String> validMails = new ArrayList<>();
List<String> prefilledMails = new ArrayList<>();
prefilledMails.addAll(Arrays.asList(mail.getItemData().getPrefilledValue().split(";")));

if (mail.getItemData().getPrefilledValue() != null) {
prefilledMails.addAll(Arrays.asList(mail.getItemData().getPrefilledValue().split(";")));
}

// we do this, since we can't tell, if mail was pre-filled from federation or perun
// by removing all fed values we can be sure, that value from perun will remain as trusted
Expand Down

0 comments on commit 75d5002

Please sign in to comment.