Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-2722

AbstractByteBufBsonDocument#getFirstKey should throw NoSuchElementException if the document is empty

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • 3.7.0
    • None
    • BSON
    • None

    Description

      AbstractByteBufBsonDocument#getFirstKey shoulkd throw NoSuchElementException if the document is empty, as per specification of the method in BsonDocument.

      Attachments

        Activity

          People

            jeff.yemin@mongodb.com Jeffrey Yemin
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: