[evolution/gnome-3-18] Bug 758827 - Evolution crashed in prevent_from_deleting_last_element_in_body()



commit 8ceac3eb4c20ceb9e439af211e5cd8576e32a3a0
Author: Tomas Popela <tpopela redhat com>
Date:   Mon Nov 30 11:00:49 2015 +0100

    Bug 758827 - Evolution crashed in prevent_from_deleting_last_element_in_body()
    
    Check if the variable exists before using it.

 e-util/e-html-editor-view.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index a96c361..66bb16c 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -3951,7 +3951,7 @@ prevent_from_deleting_last_element_in_body (EHTMLEditorView *view)
 
                content = webkit_dom_node_get_text_content (WEBKIT_DOM_NODE (body));
 
-               if (!*content)
+               if (content && !*content)
                        ret_val = TRUE;
 
                g_free (content);


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