--- a/fotaapplication/fotaserver/FotaServer/src/FotaServer.cpp Fri Mar 12 15:46:48 2010 +0200
+++ b/fotaapplication/fotaserver/FotaServer/src/FotaServer.cpp Mon Mar 15 12:43:15 2010 +0200
@@ -766,7 +766,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();
@@ -814,6 +816,7 @@
err = RProperty::Set(TUid::Uid(KOmaDMAppUid), KFotaDMRefresh, EFalse );
FLOG(_L("RProperty KFotaDMRefresh EFalse, err = %d"), err);
}
+ }
// Download to be restarted
else
{