From 510ae47c0727698808a6e440e1fe2a0901289f99 Mon Sep 17 00:00:00 2001 From: Sergio Villar Senin Date: Fri, 23 Jan 2009 11:56:36 +0000 Subject: [PATCH] Fixes a potential crash when moving messages pmo-trunk-r7259 --- src/modest-ui-actions.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modest-ui-actions.c b/src/modest-ui-actions.c index 523435a..9383d97 100644 --- a/src/modest-ui-actions.c +++ b/src/modest-ui-actions.c @@ -5778,6 +5778,10 @@ modest_ui_actions_on_edit_mode_move_to (ModestWindow *win) folder_view = NULL; list_to_move = modest_platform_get_list_to_move (MODEST_WINDOW (win)); + + if (!list_to_move) + return FALSE; + if (tny_list_get_length (list_to_move) < 1) { g_object_unref (list_to_move); return FALSE; -- 1.7.9.5