[Xfce4-commits] <postler:master> Don't insert newly created message if it is null

Christian Dywan noreply at xfce.org
Wed Nov 17 02:06:01 CET 2010


Updating branch refs/heads/master
         to 30b15074bb73cd2e43bfedd7c4753126d9d360f7 (commit)
       from 5acd966f7f1c891834a92dd60293feb0fb56af22 (commit)

commit 30b15074bb73cd2e43bfedd7c4753126d9d360f7
Author: Christian Dywan <christian at twotoasts.de>
Date:   Wed Nov 17 02:04:04 2010 +0100

    Don't insert newly created message if it is null
    
    Fixes: https://bugs.launchpad.net/postler/+bug/675780

 postler/postler-messages.vala |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/postler/postler-messages.vala b/postler/postler-messages.vala
index d893b47..1c27481 100644
--- a/postler/postler-messages.vala
+++ b/postler/postler-messages.vala
@@ -762,6 +762,8 @@ public class Postler.Messages : Gtk.TreeView {
                 break;
             bool folder_new = file.get_path ().has_suffix ("/new");
             var message = read_message (file, folder_new, {}, {});
+            if (message == null)
+                break;
             message.size = 0; /* FIXME: get file size */
             store.insert_with_values (null, null, 0,
                 Columns.FLAGGED, message.flagged,



More information about the Xfce4-commits mailing list