diff options
Diffstat (limited to 'notmuch-show.c')
-rw-r--r-- | notmuch-show.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); |