[Minor] Fixed NPE

This commit is contained in:
Robert von Burg 2023-12-08 09:31:22 +01:00
parent 974c3955ee
commit 529c1d0e3b
Signed by: eitch
GPG Key ID: 75DB9C85C74331F7
1 changed files with 2 additions and 1 deletions

View File

@ -61,7 +61,8 @@ public class InMemoryStrolchDao<T extends StrolchRootElement> implements Strolch
public List<T> queryAll(String... types) throws StrolchPersistenceException {
List<T> values = new ArrayList<>();
for (String type : types) {
values.addAll(this.elements.getList(type));
if (this.elements.containsList(type))
values.addAll(this.elements.getList(type));
}
return values;
}