Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-4321

cursor return nil rather than raise error

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 12_01_17
    • Affects Version/s: None
    • Component/s: None
    • None

      Exception class: NoMethodError, Exception message: undefined method `each' for nil:NilClass

      /home/ubuntu/leadgenie/shared/bundle/ruby/2.2.0/gems/mongo-2.2.4/lib/mongo/cursor.rb:85:in `each'
      /home/ubuntu/leadgenie/shared/bundle/ruby/2.2.0/gems/mongo-2.2.4/lib/mongo/collection/view/iterable.rb:44:in `each'
      /home/ubuntu/leadgenie/shared/bundle/ruby/2.2.0/gems/mongoid-5.0.2/lib/mongoid/query_cache.rb:207:in `each'
      /home/ubuntu/leadgenie/shared/bundle/ruby/2.2.0/gems/mongoid-5.0.2/lib/mongoid/contextual/mongo.rb:121:in `each'

            Assignee:
            emily.stolfo Emily Stolfo
            Reporter:
            rayli Ray Li
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: