--- 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
{