Rocco Rutte:
[apps/madmutt.git] / curs_main.c
index f3bc7c0..8008f5f 100644 (file)
@@ -195,7 +195,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);