LPS-47341 OpenSearch throws an ArrayIndexOutOfBoundsException and a NullPointerException