--- a/emailuis/nmailui/src/nmviewerheader.cpp Thu Sep 02 20:15:00 2010 +0300
+++ b/emailuis/nmailui/src/nmviewerheader.cpp Fri Sep 17 08:27:21 2010 +0300
@@ -256,16 +256,15 @@
NM_FUNCTION;
if (mHeaderBox) { // Initialize recipient box
- if (!mRecipientsBox){
+ if (!mRecipientsBox) {
mRecipientsBox = new HbLabel();
HbStyle::setItemName(mRecipientsBox, "recipients");
mRecipientsBox->setFontSpec(HbFontSpec(HbFontSpec::Secondary));
mRecipientsBox->setTextWrapping((Hb::TextWrapping)NmTextWrapWordOrAnywhere);
- }
-
- // Set recipients to text edit field as html
- NmAddress sender = mMessage->envelope().sender();
+ }
if (mMessage) {
+ // Set recipients to text edit field as html
+ NmAddress sender = mMessage->envelope().sender();
mRecipientsBox->setHtml(formatRecipientList(addressToDisplay(sender),
mMessage->envelope().toRecipients(),
mMessage->envelope().ccRecipients()));