Fix a crash.

parent fbc06500
......@@ -173,7 +173,7 @@ int index_color (int index_no)
{
HEADER *h = Context->hdrs[Context->v2r[index_no]];
if (h->pair)
if (h && h->pair)
return h->pair;
mutt_set_header_color (Context, h);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment