[JAVA-2722] AbstractByteBufBsonDocument#getFirstKey should throw NoSuchElementException if the document is empty Created: 29/Dec/17  Updated: 28/Oct/23  Resolved: 08/Jan/18

Status: Closed
Project: Java Driver
Component/s: BSON
Affects Version/s: None
Fix Version/s: 3.7.0

Type: Bug Priority: Minor - P4
Reporter: Jeffrey Yemin Assignee: Jeffrey Yemin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

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



 Comments   
Comment by Githook User [ 08/Jan/18 ]

Author:

{'name': 'Jeff Yemin', 'username': 'jyemin', 'email': 'jeff.yemin@10gen.com'}

Message: JAVA-2722: Fix AbstractByteBufBsonDocument#getFirstKey to throw NoSuchElementException if the document is empty, as per specification of the method in BsonDocument
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/174d743eeff9f12e7ce2e42b8432a691c49edaae

Generated at Thu Feb 08 08:57:55 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.