[CSHARP-1198] mongodb-csharp-driver throwing NullReferenceException when using CountAsync Created: 20/Mar/15 Updated: 02/Apr/16 Resolved: 20/Mar/15 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | API |
| Affects Version/s: | 2.0 |
| Fix Version/s: | 2.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Jeremy Herman | Assignee: | Craig Wilson |
| Resolution: | Done | Votes: | 0 |
| Labels: | rc | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
REF: https://groups.google.com/forum/#!topic/mongodb-user/yfbzkozHS64 Hi, Perhaps I'm not use this method properly but I think I am. Here is my code:
When CountAsync executes (I normally would attach a .Result, but I wanted to isolate the issue here), it throws the following exception:
I should mention that when I comment out the CountAsync() and replace it with:
My correct results are returned. Any advice? Thanks |
| Comments |
| Comment by Craig Wilson [ 02/Apr/15 ] |
|
Yes... I simply failed to mark the fix version correctly. My bad and thanks for the report. |
| Comment by Jeremy Herman [ 02/Apr/15 ] |
|
@Craig Wilson, I was curious if this made it into today's build? Just wanted to be sure the 'Fix Version' is correct or not, as other cases seem to have it reflected. |
| Comment by Githook User [ 20/Mar/15 ] |
|
Author: {u'username': u'craiggwilson', u'name': u'Craig Wilson', u'email': u'craiggwilson@gmail.com'}Message: |