Coverity fixes
[claws.git] / src / summary_search.c
index 97adcd40a27b6ea94f46a92b305fabd4fffda16f..a085520497af86cc131e34fd2bd348620c580a9d 100644 (file)
@@ -807,7 +807,10 @@ static void summary_search_execute(gboolean backward, gboolean search_all)
 
                msginfo = gtk_cmctree_node_get_row_data(ctree, node);
 
-               matched = summary_search_verify_match(msginfo);
+               if (msginfo)
+                       matched = summary_search_verify_match(msginfo);
+               else
+                       matched = FALSE;
 
                if (matched) {
                        if (search_all) {