messagingapp/msgutils/unidatautils/unidatamodelplugins/unibiomessagedataplugin/src/unibiomessagedataplugin_p.cpp
changeset 73 ecf6a73a9186
parent 48 4f501b74aeb1
equal deleted inserted replaced
68:e8a69c93c830 73:ecf6a73a9186
    48 //---------------------------------------------------------------
    48 //---------------------------------------------------------------
    49 UniBioMessageDataPluginPrivate::~UniBioMessageDataPluginPrivate()
    49 UniBioMessageDataPluginPrivate::~UniBioMessageDataPluginPrivate()
    50 {
    50 {
    51     q_ptr = NULL;
    51     q_ptr = NULL;
    52     
    52     
    53     if(attachmentProcessed == EFalse && iAttachmentCount == 1)
    53     if(attachmentProcessed == EFalse && iAttachmentCount == 1 && iMsvEntry)
    54     {
    54     {
    55        TRAP_IGNORE( CMsvStore* store = iMsvEntry->EditStoreL();
    55        TRAP_IGNORE( CMsvStore* store = iMsvEntry->EditStoreL();
    56         CleanupStack::PushL(store);
    56         CleanupStack::PushL(store);
    57         MMsvAttachmentManagerSync& attachMan = store->AttachmentManagerExtensionsL();
    57         MMsvAttachmentManagerSync& attachMan = store->AttachmentManagerExtensionsL();
    58         attachMan.RemoveAttachmentL(0);
    58         attachMan.RemoveAttachmentL(0);