[evolution/gnome-3-22] Avoid a (rather rare) crash under message-list.c::build_tree()



commit 10fb67ba36cbe6cbfecce01243c182973216ea32
Author: Milan Crha <mcrha redhat com>
Date:   Fri Jan 13 16:04:48 2017 +0100

    Avoid a (rather rare) crash under message-list.c::build_tree()
    
    I hit it when the CamelFolder returned something unexpected, then
    the variable as NULL and it caused the crash.

 mail/message-list.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/mail/message-list.c b/mail/message-list.c
index 0a7c7b4..279753c 100644
--- a/mail/message-list.c
+++ b/mail/message-list.c
@@ -4210,7 +4210,7 @@ build_tree (MessageList *message_list,
        build_subtree (
                message_list,
                message_list->priv->tree_model_root,
-               thread->tree, &row);
+               thread ? thread->tree : NULL, &row);
 
        message_list_tree_model_thaw (message_list);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]