Skip to content
Browse files

Make sure Enumerable#contexts does not return nil.

  • Loading branch information...
1 parent a798166 commit a4581e8f062860e04e40c2427a5ced89a2976db5 @gkellogg gkellogg committed Nov 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rdf/mixin/enumerable.rb
View
2 lib/rdf/mixin/enumerable.rb
@@ -468,7 +468,7 @@ def enum_object
# @see #enum_context
def contexts(options = {})
if options[:unique] == false
- enum_statement.map(&:context).to_enum # TODO: optimize
+ enum_statement.map(&:context).compact.to_enum # TODO: optimize
else
enum_context
end

0 comments on commit a4581e8

Please sign in to comment.
Something went wrong with that request. Please try again.