messagingapp/msgappfw/plugins/msgplugin/src/ccsmsgpluginutility.cpp
changeset 34 84197e66a4bd
parent 27 e4592d119491
child 43 35b64624a9e7
equal deleted inserted replaced
31:ebfee66fde93 34:84197e66a4bd
    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 );
    78     conversationEntry->SetDescriptionL( *aDescription );
    79     conversationEntry->SetDescriptionL( *aDescription );
    79     conversationEntry->SetConversationDir( MapDirection( aDir ) );
    80     conversationEntry->SetConversationDir( MapDirection( aDir ) );
    80     conversationEntry->SetSendState( aSendState );
    81     conversationEntry->SetSendState( aSendState );