browserutilities/downloadmgr/DownloadMgrClntSrv/src/DownloadMgrClntSubSession.cpp
changeset 10 a359256acfc6
parent 5 10e98eab6f85
child 25 0ed94ceaa377
--- a/browserutilities/downloadmgr/DownloadMgrClntSrv/src/DownloadMgrClntSubSession.cpp	Fri Jul 03 15:54:40 2009 +0100
+++ b/browserutilities/downloadmgr/DownloadMgrClntSrv/src/DownloadMgrClntSubSession.cpp	Thu Aug 27 07:44:59 2009 +0300
@@ -3305,9 +3305,11 @@
 	SDMgrCodUserData* userData = new (ELeave) SDMgrCodUserData;
 	userData->iHandle = iHandle;
 	userData->iPrevCodEvent = (MCodDownloadObserver::EDone);
-	iCodDownload->SetUserData( (TAny*)userData );
-	iDownloadMgr->IncrementEventPriorityFlag();	    	
-	
+	if(iCodDownload)
+	    {
+	    iCodDownload->SetUserData( (TAny*)userData );
+	    iDownloadMgr->IncrementEventPriorityFlag();
+	    }
 	
 	}
 // ---------------------------------------------------------