check for null return from query()

This commit is contained in:
Dwight
2010-08-02 14:44:53 -04:00
parent c43462c6b0
commit 08eaec0599
9 changed files with 17 additions and 5 deletions

View File

@@ -170,6 +170,7 @@ namespace mongo {
static DBClientBase * db = createDirectClient();
auto_ptr<DBClientCursor> c = db->query( coll , Query() );
assert( c.get() );
set<string> thisTime;