Closed dconnelly closed 5 years ago
@mbhaskar let's get this in the 2.5.0 train since you already have the other hotfix that needs the stress test before it goes out.
Shipped a fix in 2.5.0. Should be live now. Will be indexed on maven in the next day or so depending on how long maven takes.
Describe the bug
Calling DocumentCollection.getIndexingPolicy().getCompositeIndexes() can NPE if a container has no composite indexes. Problem is at
IndexingPolicy.java
line 204:If the property bag does not contain a composite indexes property, the for loop will NPE.
To Reproduce Use readCollection() to read a collection, then call getIndexingPolicy().getCompositeIndexes()
Expected behavior Should return composite indexes list.
Actual behavior Throws NPE
Environment summary SDK Version: 2.4.5 Java JDK version: Java 8 OS Version (e.g. Windows, Linux, MacOSX) MacOSX
Additional context Add any other context about the problem here.