shell crashes when calling next() on a cursor that's at the end

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Critical - P2
    • 1.1.0
    • Affects Version/s: 1.0.0
    • Component/s: None
    • None
    • Environment:
      WinXP
    • None
    • 0
    • None
    • None
    • None
    • None
    • None
    • None

      see transcript below:

      > db.test.find()
      > db.test.save(

      {a: 1, b:2, c:3}

      )
      > db.test.save(

      {r: 4, s:5, t:6}

      )
      > db.test.find()

      {"_id" : ObjectId( "4aa12a88820c00000000615a") , "a" : 1 , "b" : 2 , "c" : 3} {"_id" : ObjectId( "4aa12a94820c00000000615b") , "r" : 4 , "s" : 5 , "t" : 6}

      > k=db.test.find()

      {"_id" : ObjectId( "4aa12a88820c00000000615a") , "a" : 1 , "b" : 2 , "c" : 3} {"_id" : ObjectId( "4aa12a94820c00000000615b") , "r" : 4 , "s" : 5 , "t" : 6}

      > k
      > k.hasNext()
      false
      > k.next()
      /* CRASH */

            Assignee:
            Eliot Horowitz (Inactive)
            Reporter:
            Jason Sachs
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: