Checks for preventing NPEs in MetaData#concreteIndices #10339
Labels
:Data Management/Indices APIs
APIs to create and manage indices and templates
>enhancement
v1.6.0
v2.0.0-beta1
This is a follow issue pulled out of #10148. The current implementation of MetaData.concreteIndices() leaves some edge cases where NPEs can occurr. This can happen when wildcard expansion is switched off for both open and closed indices in the IndicesOptions and the method is calles with
null
or empty list for thealiasOrIndices
argument.This PR adds a check and randomized tests for this method.
The text was updated successfully, but these errors were encountered: