Skip to content

Commit 35dbd11

Browse files
authored
Merge pull request #213 from evolvedbinary/6.x.x/hotfix/empty-fn-collection
[6.x.x] Fix a regression fn:collection and xmldb:xcollection
2 parents 7925d60 + 2438486 commit 35dbd11

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

exist-core/src/main/java/org/exist/xquery/functions/fn/ExtCollection.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,15 +218,13 @@ private Sequence getCollectionUriItems(final List<URI> collectionUris) throws XP
218218
}
219219

220220
if (docs == null || docs.getDocumentCount() == 0) {
221-
return Sequence.EMPTY_SEQUENCE;
221+
return items;
222222
}
223223

224224
if (items == null) {
225225
items = new ValueSequence(docs.getDocumentCount());
226-
} else {
227-
addAll(docs, items);
228226
}
229-
227+
addAll(docs, items);
230228
return items;
231229
}
232230
}

0 commit comments

Comments
 (0)