--- a/messagingapp/msgappfw/utils/src/ccsconversationentry.cpp Fri Jun 11 13:35:48 2010 +0300
+++ b/messagingapp/msgappfw/utils/src/ccsconversationentry.cpp Wed Jun 23 18:09:17 2010 +0300
@@ -208,17 +208,15 @@
// Sets the Conversation description of this object
// ----------------------------------------------------------------------------
EXPORT_C void CCsConversationEntry::SetDescriptionL(const TDesC& aDescription)
- {
- if((&aDescription))
- {
- TInt descrLength = aDescription.Length();
- if ( descrLength > KMaxDescrSize )
- descrLength = KMaxDescrSize;
-
- iDescription = HBufC::NewL(descrLength);
- iDescription->Des().Copy(aDescription.Left(descrLength));
- }
- }
+{
+
+ TInt descrLength = aDescription.Length();
+ if (descrLength > KMaxDescrSize)
+ descrLength = KMaxDescrSize;
+ iDescription = HBufC::NewL(descrLength);
+ iDescription->Des().Copy(aDescription.Left(descrLength));
+
+}
// ----------------------------------------------------------------------------
// CCsConversationEntry::ChangeAttributes
@@ -260,7 +258,8 @@
cloneObject->SetEntryId(iEntryID);
cloneObject->SetSendState(iConversationStatus);
cloneObject->ChangeAttributes(iConversationAttrib, ECsAttributeNone);
- cloneObject->SetDescriptionL(*iDescription);
+ if(iDescription)
+ cloneObject->SetDescriptionL(*iDescription);
cloneObject->SetTimeStampL(iTimeStamp);
CleanupStack::Pop(cloneObject);