* Fixes NB#105914, crash when renaming
authorSergio Villar Senin <svillar@igalia.com>
Mon, 16 Mar 2009 08:26:25 +0000 (08:26 +0000)
committerSergio Villar Senin <svillar@igalia.com>
Mon, 16 Mar 2009 08:26:25 +0000 (08:26 +0000)
pmo-trunk-r8031

src/modest-mail-operation.c

index c0e721c..43453fe 100644 (file)
@@ -2225,8 +2225,10 @@ transfer_folder_cb (TnyFolder *folder,
        }
 
        /* Update state of new folder */
-       tny_folder_refresh_async (new_folder, NULL, NULL, NULL);
-       tny_folder_poke_status (new_folder);
+       if (new_folder) {
+               tny_folder_refresh_async (new_folder, NULL, NULL, NULL);
+               tny_folder_poke_status (new_folder);
+       }
 
        /* Notify about operation end */
        modest_mail_operation_notify_end (self);