messagingapp/msgappfw/plugins/msgplugin/src/ccsmsgpluginutility.cpp
branchGCC_SURGE
changeset 47 5b14749788d7
parent 43 35b64624a9e7
equal deleted inserted replaced
35:a32b19fb291e 47:5b14749788d7
    70     // create CCsConversationEntry
    70     // create CCsConversationEntry
    71     CCsConversationEntry *conversationEntry = CCsConversationEntry::NewL();
    71     CCsConversationEntry *conversationEntry = CCsConversationEntry::NewL();
    72     CleanupStack::PushL(conversationEntry);
    72     CleanupStack::PushL(conversationEntry);
    73         
    73         
    74     //set the values
    74     //set the values
    75     conversationEntry->SetContactL( *aContact );
    75     if(aContact)
       
    76         conversationEntry->SetContactL( *aContact );
    76     conversationEntry->SetEntryId( aEnryId );
    77     conversationEntry->SetEntryId( aEnryId );
    77     conversationEntry->SetTimeStampL( aTimeStamp );
    78     conversationEntry->SetTimeStampL( aTimeStamp );
       
    79     if (aDescription) {
    78     conversationEntry->SetDescriptionL( *aDescription );
    80     conversationEntry->SetDescriptionL( *aDescription );
       
    81     }
    79     conversationEntry->SetConversationDir( MapDirection( aDir ) );
    82     conversationEntry->SetConversationDir( MapDirection( aDir ) );
    80     conversationEntry->SetSendState( aSendState );
    83     conversationEntry->SetSendState( aSendState );
    81     conversationEntry->ChangeAttributes( aMsgAttribs, ECsAttributeNone );
    84     conversationEntry->ChangeAttributes( aMsgAttribs, ECsAttributeNone );
    82     conversationEntry->SetType(aCsType);
    85     conversationEntry->SetType(aCsType);
    83         
    86