about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--lib/PublicInbox/ExtMsg.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/ExtMsg.pm b/lib/PublicInbox/ExtMsg.pm
index 0b667545..59bbae59 100644
--- a/lib/PublicInbox/ExtMsg.pm
+++ b/lib/PublicInbox/ExtMsg.pm
@@ -75,7 +75,7 @@ sub ext_msg {
                 # TODO: reuse existing PublicInbox::Git objects to save forks
                 my $git = PublicInbox::Git->new($n->{git_dir});
                 my (undef, $type, undef) = $git->check($path);
-                return r302($n->{url}, $mid) if ($type eq 'blob');
+                return r302($n->{url}, $mid) if ($type && $type eq 'blob');
         }
 
         # fall back to partial MID matching