emailuis/nmailui/src/nmviewerheader.cpp
changeset 66 084b5b1f02a7
parent 56 15bc1d5d6267
child 68 83cc6bae1de8
--- a/emailuis/nmailui/src/nmviewerheader.cpp	Mon Aug 23 23:32:31 2010 +0300
+++ b/emailuis/nmailui/src/nmviewerheader.cpp	Fri Sep 03 14:07:42 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()));