diff options
author | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2013-07-22 21:49:13 -0700 |
---|---|---|
committer | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2013-07-22 21:49:13 -0700 |
commit | e2e7c10a3a664841e12af8531d0c3145a548d7d6 (patch) | |
tree | 1fcbd6211d6fded6a1320d375b7a8186a8ea3724 /src/core/renderer | |
parent | fb2d9ddf20998f177ebf404413de4d8d94749a48 (diff) |
Fixed #230: fixed AbstractMessagePart::partForUniqueID() and case when all required data have not been retrieved yet htmlForAbstractMessagePart()
Diffstat (limited to 'src/core/renderer')
-rw-r--r-- | src/core/renderer/MCHTMLRenderer.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/renderer/MCHTMLRenderer.cc b/src/core/renderer/MCHTMLRenderer.cc index 5cffa106..071d7523 100644 --- a/src/core/renderer/MCHTMLRenderer.cc +++ b/src/core/renderer/MCHTMLRenderer.cc @@ -357,7 +357,8 @@ static String * htmlForAbstractMessagePart(AbstractMessagePart * part, htmlRende return NULL; } String * substring = htmlForAbstractPart(part->mainPart(), context); - MCAssert(substring != NULL); + if (substring == NULL) + return NULL; HashMap * values = context->htmlCallback->templateValuesForHeader(part->header()); String * headerString = renderTemplate(context->htmlCallback->templateForEmbeddedMessageHeader(part->header()), values); |