aboutsummaryrefslogtreecommitdiffstats
path: root/em-format
diff options
context:
space:
mode:
authorDan Vrátil <dvratil@redhat.com>2012-06-19 16:22:14 +0800
committerDan Vrátil <dvratil@redhat.com>2012-06-19 16:27:05 +0800
commite3966e7034c7e11da5616968f30d5194aa6fc5c3 (patch)
tree18bb8a8dc910a873c5b25b33687ce0349226e5a2 /em-format
parent2c51b159c7b30d5639202d6b60eda536d0be45e8 (diff)
downloadgsoc2013-evolution-e3966e7034c7e11da5616968f30d5194aa6fc5c3.tar
gsoc2013-evolution-e3966e7034c7e11da5616968f30d5194aa6fc5c3.tar.gz
gsoc2013-evolution-e3966e7034c7e11da5616968f30d5194aa6fc5c3.tar.bz2
gsoc2013-evolution-e3966e7034c7e11da5616968f30d5194aa6fc5c3.tar.lz
gsoc2013-evolution-e3966e7034c7e11da5616968f30d5194aa6fc5c3.tar.xz
gsoc2013-evolution-e3966e7034c7e11da5616968f30d5194aa6fc5c3.tar.zst
gsoc2013-evolution-e3966e7034c7e11da5616968f30d5194aa6fc5c3.zip
Bug #678345 - Runtime warning when sender photo is disabled
Diffstat (limited to 'em-format')
-rw-r--r--em-format/e-mail-parser-headers.c4
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 0a2c2bd40e..76b846464d 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");