Fixes FwNULL 5/16
authorSergio Villar Senin <svillar@igalia.com>
Wed, 18 Mar 2009 17:13:33 +0000 (17:13 +0000)
committerSergio Villar Senin <svillar@igalia.com>
Wed, 18 Mar 2009 17:13:33 +0000 (17:13 +0000)
pmo-trunk-r8172

src/modest-mail-operation.c

index b592668..f1907d5 100644 (file)
@@ -1559,7 +1559,8 @@ inbox_refreshed_cb (TnyFolder *inbox,
                                     MODEST_MAIL_OPERATION_ERROR_OPERATION_CANCELED,
                                     "canceled");
 
-               tny_folder_remove_observer (inbox, info->inbox_observer);
+               if (inbox)
+                       tny_folder_remove_observer (inbox, info->inbox_observer);
                g_object_unref (info->inbox_observer);
                info->inbox_observer = NULL;