[evolution] Bug #678345 - Runtime warning when sender photo is disabled



commit e3966e7034c7e11da5616968f30d5194aa6fc5c3
Author: Dan VrÃtil <dvratil redhat com>
Date:   Tue Jun 19 10:22:14 2012 +0200

    Bug #678345 - Runtime warning when sender photo is disabled

 em-format/e-mail-parser-headers.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/em-format/e-mail-parser-headers.c b/em-format/e-mail-parser-headers.c
index 0a2c2bd..76b8464 100644
--- a/em-format/e-mail-parser-headers.c
+++ b/em-format/e-mail-parser-headers.c
@@ -70,6 +70,10 @@ empe_headers_bind_dom (EMailPart *part,
 	document = webkit_dom_node_get_owner_document (WEBKIT_DOM_NODE (element));
 	photo = webkit_dom_document_get_element_by_id (document, "__evo-contact-photo");
 
+	/* Contact photos disabled, the <img> tag is not there */
+	if (!photo)
+		return;
+
 	addr = webkit_dom_element_get_attribute (photo, "data-mailaddr");
 	only_local = webkit_dom_element_has_attribute (photo, "data-onlylocal");
 



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