Skip to content

Commit

Permalink
Guard against nil bindings in solutions.
Browse files Browse the repository at this point in the history
  • Loading branch information
gkellogg committed Jan 29, 2019
1 parent 1174a16 commit 72c0318
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rdf/query/solutions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def bindings
# Duplicates each solution.
# @return [RDF::Query::Solutions]
def dup
RDF::Query::Solutions.new(self.map(&:dup))
RDF::Query::Solutions.new(self.compact.map(&:dup))
end

##
Expand Down

0 comments on commit 72c0318

Please sign in to comment.