diff options
author | Dan Vrátil <dvratil@redhat.com> | 2012-06-19 16:22:14 +0800 |
---|---|---|
committer | Dan Vrátil <dvratil@redhat.com> | 2012-06-19 16:27:05 +0800 |
commit | e3966e7034c7e11da5616968f30d5194aa6fc5c3 (patch) | |
tree | 18bb8a8dc910a873c5b25b33687ce0349226e5a2 | |
parent | 2c51b159c7b30d5639202d6b60eda536d0be45e8 (diff) | |
download | gsoc2013-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
-rw-r--r-- | 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 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"); |