]> git.notmuchmail.org Git - notmuch/commit
Fix _notmuch_message_create to catch Xapian DocNotFoundError.
authorCarl Worth <cworth@cworth.org>
Fri, 23 Oct 2009 12:45:29 +0000 (05:45 -0700)
committerCarl Worth <cworth@cworth.org>
Fri, 23 Oct 2009 12:48:52 +0000 (05:48 -0700)
commit69b25a75ec8f4a8b27fe25f234a39a7e67287d36
tree28b4ba5f75d14f67f2c223982d79ff5bd64d01cd
parent17548e314a8f190765ca714d626068c5afef2cb4
Fix _notmuch_message_create to catch Xapian DocNotFoundError.

This function is only supposed to be called with a doc_id that
was queried from the database already. So there's an internal
error if no document with that doc_id can be found in the database.

In that case, return NULL.
message.cc