Skip to content

Commit

Permalink
Merge pull request #402 from cherylking/anotherEmptyFeatureWarning
Browse files Browse the repository at this point in the history
Check for empty feature
  • Loading branch information
cherylking authored Jun 5, 2023
2 parents 59bb5d9 + 39416de commit 4e720b6
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,12 @@ private Set<String> parseFeatureManagerNode(Element node) {
} else {
content = content.trim();
}
result.add(content);
// Check for empty feature element, skip it and log warning.
if (content.isEmpty()) {
warn("An empty feature was specified in a server configuration file. Ensure that the features are valid.");
} else {
result.add(content);
}
}
}
}
Expand Down

0 comments on commit 4e720b6

Please sign in to comment.