diff -r 9ba538e329bd -r 7d9067c6fcb1 photosgallery/contentharvesterplugin/src/glxcontentharvesterplugindownloads.cpp --- a/photosgallery/contentharvesterplugin/src/glxcontentharvesterplugindownloads.cpp Thu Jan 07 12:46:23 2010 +0200 +++ b/photosgallery/contentharvesterplugin/src/glxcontentharvesterplugindownloads.cpp Mon Jan 18 20:19:20 2010 +0200 @@ -125,7 +125,13 @@ void CGlxContentHarvesterPluginDownloads::UpdateDataL() { TRACER( "CGlxContentHarvesterPluginDownloads::UpdateDataL" ); - if(iMediaList && iMediaList->Count() && iPreviewItemCount.Count() ) + + if (!iMediaList) + { + return; + } + + if (iMediaList->Count() && iPreviewItemCount.Count()) { GLX_LOG_INFO1("CGlxContentHarvesterPluginDownloads::UpdateDataL(),iProgressIndex=%d",iProgressIndex); TInt ret = UpdateItem(iPreviewItemCount[iProgressIndex]);