From: Richard Russon Date: Wed, 6 Jul 2016 19:31:02 +0000 (-0700) Subject: Fix sidebar crash for non-existent mailbox X-Git-Tag: neomutt-20160822~87 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=da60e6d4d7686d414a440ab20a723460928b0854;p=neomutt Fix sidebar crash for non-existent mailbox If you to a non-existent mailbox, there will be no Context. --- diff --git a/sidebar.c b/sidebar.c index 12971e521..3c2d9c03e 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))