From 9384884d2ea33c438a1b28a2b19666ae7f21fe6a Mon Sep 17 00:00:00 2001 From: Richard Russon Date: Wed, 6 Jul 2016 12:31:02 -0700 Subject: [PATCH] Fix sidebar crash for non-existent mailbox If you to a non-existent mailbox, there will be no Context. --- sidebar.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sidebar.c b/sidebar.c index 12971e52..3c2d9c03 100644 --- a/sidebar.c +++ b/sidebar.c @@ -886,6 +886,9 @@ void mutt_sb_set_open_buffy (void) OpnIndex = -1; + if (!Context) + return; + for (entry = 0; entry < EntryCount; entry++) { if (!mutt_strcmp (Entries[entry]->buffy->realpath, Context->realpath)) -- 2.50.1