Skip to content

Commit 71a3dc9

Browse files
committed
Remove unneeded validation in feature set usage
This validation is not needed, as we have discovered the source of the serialization error that was leading to some usage instances appearing to not have a name.
1 parent c2df6f9 commit 71a3dc9

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/XPackFeatureSet.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@ public Usage(StreamInput input) throws IOException {
3737

3838
public Usage(String name, boolean available, boolean enabled) {
3939
Objects.requireNonNull(name);
40-
if (name.isEmpty()) {
41-
throw new IllegalArgumentException("name must not be empty");
42-
}
4340
this.name = name;
4441
this.available = available;
4542
this.enabled = enabled;

0 commit comments

Comments
 (0)