From: Sergio Villar Senin Date: Fri, 23 Jan 2009 11:56:36 +0000 (+0000) Subject: Fixes a potential crash when moving messages X-Git-Tag: git_migration_finished~735 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=510ae47c0727698808a6e440e1fe2a0901289f99 Fixes a potential crash when moving messages pmo-trunk-r7259 --- 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;