npe fix and defensive code

This commit is contained in:
Dwight
2008-07-16 14:36:10 -04:00
parent f164a412fc
commit 4bfd28fa48
5 changed files with 45 additions and 32 deletions

View File

@@ -150,7 +150,7 @@ auto_ptr<Cursor> getIndexCursor(const char *ns, JSObj& query, JSObj& order, bool
}
fail:
DEV cout << "getIndexCursor fail" << endl;
DEV cout << "getIndexCursor fail " << ns << '\n';
return auto_ptr<Cursor>();
}