From: Sergio Villar Senin Date: Mon, 16 Mar 2009 08:26:25 +0000 (+0000) Subject: * Fixes NB#105914, crash when renaming X-Git-Tag: git_migration_finished~330 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=da92f1bd8fce5747a0f3715ab2231dd0d37ba84e * Fixes NB#105914, crash when renaming pmo-trunk-r8031 --- diff --git a/src/modest-mail-operation.c b/src/modest-mail-operation.c index c0e721c..43453fe 100644 --- a/src/modest-mail-operation.c +++ b/src/modest-mail-operation.c @@ -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);