X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-show.c;h=a3f354edb6816c0b1b41038759a795b8da626db0;hp=7749dbc4b68ffde96b39fe81c95a993a8e708955;hb=58b659f893084fde2c79b8d0ce053b3bc4946b7c;hpb=64c03ae97f2f5294c60ef25d7f41849864e6ebd3 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);