mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
Fix possible NPE due to #3658 change
This commit is contained in:
parent
b27e7d3cc9
commit
e2400bc40e
@ -1042,7 +1042,7 @@ public class Strings {
|
||||
}
|
||||
|
||||
public static String[] splitStringToArray(final CharSequence s, final char c) {
|
||||
if (s.length() == 0) {
|
||||
if (s == null || s.length() == 0) {
|
||||
return Strings.EMPTY_ARRAY;
|
||||
}
|
||||
int count = 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user