From bcea8b82bfbe8a68a21f4ee183c7beecff0bdacc Mon Sep 17 00:00:00 2001 From: Sergio Villar Senin Date: Fri, 20 Mar 2009 09:35:46 +0000 Subject: [PATCH] Fixes RefNULL 5/14 pmo-trunk-r8232 --- src/modest-mail-operation.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/modest-mail-operation.c b/src/modest-mail-operation.c index 79d9c47..4ca9397 100644 --- a/src/modest-mail-operation.c +++ b/src/modest-mail-operation.c @@ -2580,11 +2580,10 @@ get_msg_async_cb (TnyFolder *folder, priv->status = MODEST_MAIL_OPERATION_STATUS_CANCELED; } else if (err) { priv->status = MODEST_MAIL_OPERATION_STATUS_FINISHED_WITH_ERRORS; - if (err) { - priv->error = g_error_copy ((const GError *) err); + priv->error = g_error_copy ((const GError *) err); + if (priv->error) { priv->error->domain = MODEST_MAIL_OPERATION_ERROR; - } - if (!priv->error) { + } else { g_set_error (&(priv->error), MODEST_MAIL_OPERATION_ERROR, MODEST_MAIL_OPERATION_ERROR_ITEM_NOT_FOUND, err->message); -- 1.7.9.5