mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-25 01:19:02 +00:00
Fix MetaTableRequest constructor
The pattern argument can be null which triggers a NPE when saved Original commit: elastic/x-pack-elasticsearch@348d731b06
This commit is contained in:
parent
d8ef52dc0d
commit
5c6e5c1cb5
@ -16,10 +16,7 @@ public class MetaTableRequest extends Request {
|
||||
private final String pattern;
|
||||
|
||||
public MetaTableRequest(String pattern) {
|
||||
if (pattern == null) {
|
||||
throw new IllegalArgumentException("[pattern] must not be null");
|
||||
}
|
||||
this.pattern = pattern;
|
||||
this.pattern = pattern == null ? "" : pattern;
|
||||
}
|
||||
|
||||
MetaTableRequest(SqlDataInput in) throws IOException {
|
||||
|
Loading…
x
Reference in New Issue
Block a user