[geary/wip/131-sent-mail: 46/52] Handle headers having null date in ConversationMessage



commit ff1827b39c070cbf5ef91ac2f859071fb6caaf49
Author: Michael Gratton <mike vee net>
Date:   Sat Aug 10 12:08:45 2019 +1000

    Handle headers having null date in ConversationMessage

 src/client/conversation-viewer/conversation-message.vala | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/client/conversation-viewer/conversation-message.vala 
b/src/client/conversation-viewer/conversation-message.vala
index a52b6ff8..dc249191 100644
--- a/src/client/conversation-viewer/conversation-message.vala
+++ b/src/client/conversation-viewer/conversation-message.vala
@@ -434,7 +434,9 @@ public class ConversationMessage : Gtk.Grid, Geary.BaseInterface {
                 (MenuModel) builder.get_object("context_menu_inspector");
         }
 
-        this.local_date = headers.date.value.to_local();
+        if (headers.date != null) {
+            this.local_date = headers.date.value.to_local();
+        }
         update_display();
 
         // Compact headers. These are partially done here and partially


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