photosgallery/contentharvesterplugin/src/glxcontentharvesterplugindownloads.cpp
changeset 2 7d9067c6fcb1
parent 1 9ba538e329bd
--- 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]);