X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-show.c;h=a3f354edb6816c0b1b41038759a795b8da626db0;hp=7749dbc4b68ffde96b39fe81c95a993a8e708955;hb=b032cf98f55da9610b6bb971b32d79e24acb4648;hpb=933caf814fcbbb7420d03ef42bb37bea6dd90449 diff --git a/notmuch-show.c b/notmuch-show.c index 7749dbc4..a3f354ed 100644 --- a/notmuch-show.c +++ b/notmuch-show.c @@ -211,6 +211,10 @@ notmuch_show_command (void *ctx, unused (int argc), unused (char *argv[])) messages = notmuch_thread_get_toplevel_messages (thread); + if (messages == NULL) + INTERNAL_ERROR ("Thread %s has no toplevel messages.\n", + notmuch_thread_get_thread_id (thread)); + show_messages (ctx, messages, 0); notmuch_thread_destroy (thread);