diff -r 453dfc402455 -r 0aa8cc770c8a mtpfws/mtpfw/src/cmtpframeworkconfig.cpp --- a/mtpfws/mtpfw/src/cmtpframeworkconfig.cpp Thu Aug 19 10:44:03 2010 +0300 +++ b/mtpfws/mtpfw/src/cmtpframeworkconfig.cpp Tue Aug 31 16:03:15 2010 +0300 @@ -174,9 +174,9 @@ const TInt KStartupInitValue = 1; iAbnormalDownValue = 0; TInt err(iRepository->Get(EAbnormalDown, iAbnormalDownValue)); - if ( KErrNone != err ) + if ((KErrNone != err ) && (KErrNotFound != err)) { - iAbnormalDownValue = 0; + User::Leave(err); } //Save the AbnormalDown state to ETrue