[evolution] Bug 758827 - Evolution crashed in prevent_from_deleting_last_element_in_body()



commit 1d59ac9e2880a08c85502c9d003da2986f6359d3
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 1190310..7d6e89e 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -3960,7 +3960,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]