Warning fix
authorJose Dapena Paz <jdapena@igalia.com>
Thu, 18 Jun 2009 14:32:04 +0000 (16:32 +0200)
committerJose Dapena Paz <jdapena@igalia.com>
Thu, 18 Jun 2009 14:32:04 +0000 (16:32 +0200)
src/widgets/modest-window-mgr.c

index 56ddbf9..8dc8cfc 100644 (file)
@@ -483,7 +483,10 @@ modest_window_mgr_find_registered_header_default (ModestWindowMgr *self, TnyHead
 
        uid = modest_tny_folder_get_header_unique_id (header);
 
 
        uid = modest_tny_folder_get_header_unique_id (header);
 
-       return modest_window_mgr_find_registered_message_uid (self, uid, win);
+       if (uid)
+               return modest_window_mgr_find_registered_message_uid (self, uid, win);
+       else
+               return FALSE;
 }
 
 gboolean
 }
 
 gboolean