Skip to content

Commit 5d82552

Browse files
committed
GH-4890 fix bug for retrieving named contexts from ExtensibleStore
1 parent 689883c commit 5d82552

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/sail/extensible-store/src/main/java/org/eclipse/rdf4j/sail/extensiblestore/ExtensibleSailSource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ private Resource internalNext() {
162162

163163
while (statements.hasNext()) {
164164
Statement next = statements.next();
165-
if (!contexts.contains(next.getContext())) {
165+
if (next.getContext() != null && !contexts.contains(next.getContext())) {
166166
contexts.add(next.getContext());
167167
return next.getContext();
168168
}

0 commit comments

Comments
 (0)