diff options
author | Eric Wong <e@80x24.org> | 2016-08-14 10:21:15 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-08-14 10:25:58 +0000 |
commit | 3e64a28248d554cabd688ebd3354f153524d293d (patch) | |
tree | 007503d1c6a251e686efb13b928a2c87d6721a80 /lib | |
parent | 9a3467e9387753ecd69e976aa82e173821fc765e (diff) | |
download | public-inbox-3e64a28248d554cabd688ebd3354f153524d293d.tar.gz |
We can't blindly assume a ghost even exists in the DB, as the rules can change internally for some corner-case Message-IDs.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/PublicInbox/Search.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Search.pm b/lib/PublicInbox/Search.pm index 018fcb55..1398ea41 100644 --- a/lib/PublicInbox/Search.pm +++ b/lib/PublicInbox/Search.pm @@ -245,7 +245,7 @@ sub lookup_message { sub lookup_mail { # no ghosts! my ($self, $mid) = @_; - my $smsg = lookup_message($self, $mid); + my $smsg = lookup_message($self, $mid) or return; PublicInbox::SearchMsg->load_doc($smsg->{doc}); } |