christkv/node-mongodb-native — Issue #411: Error with findAndModify
Author: anton-makarov
Created: 2011-11-18 13:27:04+00:00
State: open

When trying findAndModify non-existing record without upsert param we get this error:
Error: TypeError: Cannot convert null to object
at Array. (/home/solid/www/mainapi/project/node_modules/mongodb/lib/mongodb/connection/server.js:168:49)
at EventEmitter._tickCallback (node.js:126:26)
I think that error should returned in callback instead of this.