[JAVA-1855] DBCursor.getCursorId can throw NPE if the server did not need to create a cursor Created: 10/Jun/15  Updated: 16/Jul/15  Resolved: 10/Jun/15

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

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


 Description   

There needs to be an additional null check on the ServerCursor.



 Comments   
Comment by Jeffrey Yemin [ 16/Jul/15 ]

Fix is now available in the 3.0.3 release.

Comment by Githook User [ 10/Jun/15 ]

Author:

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

Message: Add null check for the ServerCursor, as the server might not have created a cursor even if there are results.

JAVA-1855
Branch: 3.0.x
https://github.com/mongodb/mongo-java-driver/commit/b345f51923135f6c4d8b1ad118617d2d46ea631d

Comment by Githook User [ 10/Jun/15 ]

Author:

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

Message: Add null check for the ServerCursor, as the server might not have created a cursor even if there are results.

JAVA-1855
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/8e29a8d7ea4841c409166b17a311f1058abedfae

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