fotaapplication/fotaserver/FotaServer/src/FotaServer.cpp
changeset 22 19fb38abab1d
parent 0 b497e44ab2fc
child 24 bf47f3b79154
--- a/fotaapplication/fotaserver/FotaServer/src/FotaServer.cpp	Tue Feb 02 00:44:00 2010 +0200
+++ b/fotaapplication/fotaserver/FotaServer/src/FotaServer.cpp	Fri Apr 16 15:52:47 2010 +0300
@@ -761,7 +761,9 @@
         StoragePluginL()->DeleteUpdatePackageL ( iDownloader->iDLState.iPkgId );
         
     // Download not to be restarted, delete
-    if ( iDownloader->iRestartCounter<=0 )
+    if ( iDownloader ) 
+    {
+    	if ( iDownloader->iRestartCounter<=0 )
         {
         // Set downloader's ending state to DB
         iDatabase->OpenDBL();
@@ -809,6 +811,7 @@
         	err = RProperty::Set(TUid::Uid(KOmaDMAppUid), KFotaDMRefresh, EFalse );
         FLOG(_L("RProperty KFotaDMRefresh EFalse, err = %d"), err);
         }
+      }
     // Download to be restarted
     else
         {