diff -r 943ff5625028 -r 171e07ac910f mpxmusicplayer/commonui/src/mpxalbumartutil.cpp --- a/mpxmusicplayer/commonui/src/mpxalbumartutil.cpp Fri Mar 12 15:42:25 2010 +0200 +++ b/mpxmusicplayer/commonui/src/mpxalbumartutil.cpp Mon Mar 15 12:40:11 2010 +0200 @@ -317,20 +317,18 @@ { CThumbnailObjectSource* source = CThumbnailObjectSource::NewLC( album, KMPXAlbumMimeType ); TInt ret = NULL; - TInt err = KErrNone; - if(iThumbnailManager ) + if(iThumbnailManager && iReqId >0) { - if(iReqId >0) - { - iThumbnailManager->CancelRequest( iReqId ); - } - TRAP(err, iReqId = TInt (iThumbnailManager->GetThumbnailL( *source, (TAny*)ret))); - } - - if( err != KErrNone) - { - User::Leave( KErrNotFound ); - } + iThumbnailManager->CancelRequest( iReqId ); + } + if(iThumbnailManager) + { + TRAPD(err, iReqId = TInt (iThumbnailManager->GetThumbnailL( *source, (TAny*)ret))); + if( err != KErrNone) + { + User::Leave( KErrNotFound ); + } + } CleanupStack::PopAndDestroy( source ); } }