Fixes a crash when saving attachments fails
[modest] / src / modest-account-mgr.c
index 1ed7dea..48a96dc 100644 (file)
@@ -959,7 +959,7 @@ modest_account_mgr_get_list (ModestAccountMgr *self, const gchar *name,
                             const gchar *key, ModestConfValueType list_type,
                             gboolean server_account)
 {
-       ModestAccountMgrPrivate *priv = MODEST_ACCOUNT_MGR_GET_PRIVATE (self);
+       ModestAccountMgrPrivate *priv = NULL;
 
        const gchar *keyname;
        GSList *retval;
@@ -1690,7 +1690,7 @@ modest_account_mgr_singleton_protocol_exists (ModestAccountMgr *mgr,
        gboolean found = FALSE;
 
        g_return_val_if_fail (MODEST_IS_ACCOUNT_MGR (mgr), FALSE);
-       account_names = modest_account_mgr_account_names (mgr, TRUE);
+       account_names = modest_account_mgr_account_names (mgr, FALSE);
 
        for (node = account_names; node != NULL; node = g_slist_next (node)) {
                ModestProtocolType current_protocol;