Skip to content

Commit

Permalink
fix Adding candidates manually through the UI also adds an empty stri…
Browse files Browse the repository at this point in the history
…ng alias (#774) (#775)
  • Loading branch information
mesutgk15 authored Dec 11, 2023
1 parent 42538c4 commit 7b45e7e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ public static class Candidate {
this.name.setValue(name);
this.excluded.setValue(excluded);

if (newlineSeparatedAliases != null) {
if (newlineSeparatedAliases != null && !newlineSeparatedAliases.isEmpty()) {
// Split by newline, and also trim whitespace
this.aliases.setAll(Utils.splitByNewline(newlineSeparatedAliases));
}
Expand Down

0 comments on commit 7b45e7e

Please sign in to comment.