prevent issue.
authorByounghui <byounghui.lim@samsung.com>
Fri, 12 Apr 2013 02:12:09 +0000 (11:12 +0900)
committerByounghui <byounghui.lim@samsung.com>
Fri, 12 Apr 2013 02:12:09 +0000 (11:12 +0900)
Change-Id: I9f54d6220c88b4e0f0efa0b47927a47163f22691
Signed-off-by: Byounghui <byounghui.lim@samsung.com>
src/FMsg_MsgUtil.cpp

index 4f1190e..b59a151 100644 (file)
@@ -1263,7 +1263,9 @@ _MsgUtil::AddEmailMessageAddress(const RecipientList& recipientList, RecipientTy
        
        for (; index < count; index++)
        {
-               tempRecipient.Append(L",<" + *(dynamic_cast< String* >(pRecipientList->GetAt(index))) + L">");
+               pRecipient = dynamic_cast< String* >(pRecipientList->GetAt(index));
+               SysTryCatch(NID_MSG, pRecipient != null, r = GetLastResult(), r, "[%s] Failed to get recipient", GetErrorMessage(r));
+               tempRecipient.Append(L",<" + *pRecipient + L">");
 
        }
        if(RECIPIENT_TYPE_TO == type)