[JAVA-1811] NullPointerException if command response is missing an ok field or errmsg field Created: 12/May/15  Updated: 28/May/15  Resolved: 19/May/15

Status: Closed
Project: Java Driver
Component/s: Command Operations
Affects Version/s: 3.0.1
Fix Version/s: 3.0.2, 3.1.0

Type: Bug Priority: Major - P3
Reporter: Jeffrey Yemin Assignee: Jeffrey Yemin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by JAVA-1808 Mongo java driver insertOne() NullPoi... Closed

 Description   

In some situations, the server has been observed to send command response containing neither an ok field nor an errmsg field. While this is not proper behavior for the server, the driver should throw a MongoCommandException instead of a NullPointerException.



 Comments   
Comment by Jeffrey Yemin [ 28/May/15 ]

Released in 3.0.2.

Comment by Githook User [ 19/May/15 ]

Author:

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

Message: Handling command responses that are missing "ok" and/or "errmsg" fields.

JAVA-1811
Branch: 3.0.x
https://github.com/mongodb/mongo-java-driver/commit/270f03c39a6d59da0b9cfcafd2ddf65e2655f722

Comment by Githook User [ 19/May/15 ]

Author:

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

Message: Handling command responses that are missing "ok" and/or "errmsg" fields.

JAVA-1811
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/79916d74811b7dc77265db609596447483e191b1

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