Skip to content

Commit

Permalink
Main code
Browse files Browse the repository at this point in the history
  • Loading branch information
albertzaharovits committed Jan 31, 2019
1 parent ff7620f commit 9c35133
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -790,8 +790,10 @@ String toQuotedJsonArray(String[] values) {
private static Optional<String[]> indices(TransportMessage message) {
if (message instanceof IndicesRequest) {
final String[] indices = ((IndicesRequest) message).indices();
if (indices != null) {
return Optional.of(((IndicesRequest) message).indices());
if (indices == null || indices.length == 0 || indices[0] == null) {
return Optional.empty();
} else {
return Optional.of(indices);
}
}
return Optional.empty();
Expand Down

0 comments on commit 9c35133

Please sign in to comment.