--- a/mpxmusicplayer/commonui/src/mpxalbumartutil.cpp Fri Jan 22 09:43:47 2010 +0200
+++ b/mpxmusicplayer/commonui/src/mpxalbumartutil.cpp Tue Jan 26 11:56:33 2010 +0200
@@ -317,11 +317,16 @@
{
CThumbnailObjectSource* source = CThumbnailObjectSource::NewLC( album, KMPXAlbumMimeType );
TInt ret = NULL;
- if(iThumbnailManager && iReqId >0)
+ TInt err = KErrNone;
+ if(iThumbnailManager )
{
- iThumbnailManager->CancelRequest( iReqId );
+ if(iReqId >0)
+ {
+ iThumbnailManager->CancelRequest( iReqId );
+ }
+ TRAP(err, iReqId = TInt (iThumbnailManager->GetThumbnailL( *source, (TAny*)ret)));
}
- TRAPD(err, iReqId = TInt (iThumbnailManager->GetThumbnailL( *source, (TAny*)ret)));
+
if( err != KErrNone)
{
User::Leave( KErrNotFound );