respect empty subdomain list
This commit is contained in:
parent
70587f2970
commit
c1aca570f7
@ -196,8 +196,11 @@ public class Domain extends AbstractEntity {
|
||||
StringBuffer aliases = new StringBuffer();
|
||||
for (String sub : subs) {
|
||||
aliases.append(' ');
|
||||
aliases.append(sub.trim());
|
||||
aliases.append('.');
|
||||
final String trimmed = sub.trim();
|
||||
if (trimmed != null && !trimmed.isEmpty()) {
|
||||
aliases.append(trimmed);
|
||||
aliases.append('.');
|
||||
}
|
||||
aliases.append(name);
|
||||
}
|
||||
return aliases.toString();
|
||||
|
Loading…
Reference in New Issue
Block a user