From: Sergio Villar Senin Date: Wed, 18 Mar 2009 17:14:35 +0000 (+0000) Subject: Fixes FwNULL 11/16 X-Git-Tag: git_migration_finished~260 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=e0b68c3da77c07ea249cae31206f43dd094a5a2a Fixes FwNULL 11/16 pmo-trunk-r8176 --- diff --git a/src/hildon2/modest-platform.c b/src/hildon2/modest-platform.c index 4b2d5c2..b9bf211 100644 --- a/src/hildon2/modest-platform.c +++ b/src/hildon2/modest-platform.c @@ -2274,7 +2274,7 @@ modest_platform_connect_if_remote_and_perform (GtkWindow *parent_window, account = TNY_ACCOUNT (g_object_ref (folder_store)); } - if (tny_account_get_account_type (account) == TNY_ACCOUNT_TYPE_STORE) { + if (account && (tny_account_get_account_type (account) == TNY_ACCOUNT_TYPE_STORE)) { if (!modest_tny_folder_store_is_remote (TNY_FOLDER_STORE (account))) { /* No need to connect a local account */ if (callback)