[evolution/wip/webkit-composer] Bug 726520 - [webkit-composer] Crash under editor_spell_checkers_foreach at e-editor.c:292



commit 7beaf8211ece5a89eeb9978e42604ddeb7740142
Author: Tomas Popela <tpopela redhat com>
Date:   Mon Mar 17 14:51:04 2014 +0100

    Bug 726520 - [webkit-composer] Crash under editor_spell_checkers_foreach at e-editor.c:292
    
    Check if returned proxy widgets are not NULL before accessing its data.

 e-util/e-editor.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/e-util/e-editor.c b/e-util/e-editor.c
index 144297f..1738a5c 100644
--- a/e-util/e-editor.c
+++ b/e-util/e-editor.c
@@ -289,7 +289,7 @@ editor_spell_checkers_foreach (EEditor *editor,
                 *     child of the proxy widget. */
                gtk_ui_manager_ensure_update (manager);
                proxies = gtk_action_get_proxies (action);
-               if (proxies->data) {
+               if (proxies && proxies->data) {
                        child = gtk_bin_get_child (proxies->data);
                        g_object_set (child, "use-markup", TRUE, NULL);
                }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]