From 7330136cdeece9085f1a31d3d61a08d572db202c Mon Sep 17 00:00:00 2001 From: Byounghui Date: Fri, 12 Apr 2013 11:12:09 +0900 Subject: [PATCH] prevent issue. Change-Id: I9f54d6220c88b4e0f0efa0b47927a47163f22691 Signed-off-by: Byounghui --- src/FMsg_MsgUtil.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/FMsg_MsgUtil.cpp b/src/FMsg_MsgUtil.cpp index 4f1190e..b59a151 100644 --- a/src/FMsg_MsgUtil.cpp +++ b/src/FMsg_MsgUtil.cpp @@ -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) -- 2.7.4