From 5065a8831bafc9d6e1d9d2d5f6083f99b810a4ea Mon Sep 17 00:00:00 2001 From: Jose Dapena Paz Date: Mon, 18 Jun 2007 10:44:32 +0000 Subject: [PATCH] * src/widgets/modest-window-mgr.c: * Now it does not crash if we cannot get an uid from one of the windows (should happen at least with main window, but also with editors) (fixes NB#60430). pmo-trunk-r2273 --- src/widgets/modest-window-mgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/modest-window-mgr.c b/src/widgets/modest-window-mgr.c index 3477b2d..e30be7e 100644 --- a/src/widgets/modest-window-mgr.c +++ b/src/widgets/modest-window-mgr.c @@ -300,7 +300,7 @@ compare_msguids (ModestWindow *win, /* Get message uid from msg window */ msg_uid = modest_msg_view_window_get_message_uid (MODEST_MSG_VIEW_WINDOW (win)); - if (msg_uid && !strcmp (msg_uid, uid)) + if (msg_uid && uid &&!strcmp (msg_uid, uid)) return 0; else return 1; -- 1.7.9.5