Skip to content

Commit 72c0318

Browse files
committed
Guard against nil bindings in solutions.
1 parent 1174a16 commit 72c0318

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/rdf/query/solutions.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def bindings
109109
# Duplicates each solution.
110110
# @return [RDF::Query::Solutions]
111111
def dup
112-
RDF::Query::Solutions.new(self.map(&:dup))
112+
RDF::Query::Solutions.new(self.compact.map(&:dup))
113113
end
114114

115115
##

0 commit comments

Comments
 (0)