Skip to content

Commit 72a8cbe

Browse files
committed
test fixes
1 parent 722438d commit 72a8cbe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/arangodb/entity/InvertedIndexField.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class InvertedIndexField implements Entity {
1818
private Boolean searchField;
1919
private Boolean trackListPositions;
2020
private final Set<AnalyzerFeature> features = new HashSet<>();
21-
private final Collection<InvertedIndexField> nested = new ArrayList<>();
21+
private Collection<InvertedIndexField> nested;
2222

2323
public String getName() {
2424
return name;
@@ -79,6 +79,7 @@ public Collection<InvertedIndexField> getNested() {
7979
}
8080

8181
public InvertedIndexField nested(InvertedIndexField... nested) {
82+
if(this.nested == null) this.nested = new ArrayList<>();
8283
Collections.addAll(this.nested, nested);
8384
return this;
8485
}

0 commit comments

Comments
 (0)