diff -r f5b689a4f7a2 -r e0c1916b8ddc syncmlfw/common/alertqueue/src/NSmlDSAlertParser11.cpp --- a/syncmlfw/common/alertqueue/src/NSmlDSAlertParser11.cpp Wed Aug 18 10:39:36 2010 +0300 +++ b/syncmlfw/common/alertqueue/src/NSmlDSAlertParser11.cpp Thu Sep 02 21:22:11 2010 +0300 @@ -24,7 +24,7 @@ #include #include #include -#include +#include #include #include @@ -217,27 +217,26 @@ SmlMetInfMetInf_t* metInf = NULL; TPtr8 mediaType( NULL, 0, 0 ); - - if ( aAlert->itemList->item->meta ) - { - if ( aAlert->itemList->item->meta->content && - aAlert->itemList->item->meta->contentType == SML_PCDATA_EXTENSION && - aAlert->itemList->item->meta->extension == SML_EXT_METINF ) - { - metInf = (SmlMetInfMetInf_t*) aAlert->itemList->item->meta->content; - - if ( metInf->type ) - { - mediaType.Set( static_cast( metInf->type->content ), metInf->type->length, metInf->type->length ); - TrimRightSpaceAndNull( mediaType ); - } - } - } - + if ( aAlert->itemList ) { if (aAlert->itemList->item) - { + { + if ( aAlert->itemList->item->meta ) + { + if ( aAlert->itemList->item->meta->content && + aAlert->itemList->item->meta->contentType == SML_PCDATA_EXTENSION && + aAlert->itemList->item->meta->extension == SML_EXT_METINF ) + { + metInf = (SmlMetInfMetInf_t*) aAlert->itemList->item->meta->content; + + if ( metInf->type ) + { + mediaType.Set( static_cast( metInf->type->content ), metInf->type->length, metInf->type->length ); + TrimRightSpaceAndNull( mediaType ); + } + } + } if ( aAlert->itemList->item->source ) { HBufC8* remotePath = NULL; @@ -253,7 +252,7 @@ } CleanupStack::PopAndDestroy(); // remotePath - } + } } }