about summary refs log tree commit homepage
path: root/lib/PublicInbox/Search.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-08-14 10:21:15 +0000
committerEric Wong <e@80x24.org>2016-08-14 10:25:58 +0000
commit3e64a28248d554cabd688ebd3354f153524d293d (patch)
tree007503d1c6a251e686efb13b928a2c87d6721a80 /lib/PublicInbox/Search.pm
parent9a3467e9387753ecd69e976aa82e173821fc765e (diff)
downloadpublic-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/PublicInbox/Search.pm')
-rw-r--r--lib/PublicInbox/Search.pm2
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});
 }