fixed segfault
[claws.git] / src / summaryview.c
index 0f3df2fe8490b9af52902b89d562d9a9cc39bde3..a43e010d869fad60565e67b65b8671d31a7f710e 100644 (file)
@@ -1313,6 +1313,8 @@ guint summary_get_current_msgnum(SummaryView *summaryview)
        if (!summaryview->selected)
                return 0;
        msginfo = gtk_ctree_node_get_row_data(ctree, summaryview->selected);
+       if (!msginfo)
+               return 0;
        return msginfo->msgnum;
 }