Fix error handling code 2.1b_release accepted/tizen_2.1/20130425.023553 submit/tizen_2.1/20130424.224037
authorso.yu <so.yu@samsung.com>
Tue, 16 Apr 2013 13:21:30 +0000 (22:21 +0900)
committerso.yu <so.yu@samsung.com>
Tue, 16 Apr 2013 13:21:45 +0000 (22:21 +0900)
Change-Id: I821402f37a4009f4e3ef4437d28a2dae1aa9a3ea
Signed-off-by: so.yu <so.yu@samsung.com>
src/CertificateSelectorForm.cpp

index 0dc36ca..d99f678 100644 (file)
@@ -89,10 +89,10 @@ CertificateSelectorForm::Finish(bool isSelected, int certId)
                AppLog("The current value of isSelected is true.");
                TryCatchResult(certId >= 0, , E_INVALID_ARG, "[%s] Invalid Certificate ID.", GetErrorMessage(E_INVALID_ARG));
 
-               pMap->Add(new (std::nothrow) String(OLD_CERT_ID_KEY), new (std::nothrow) String(Integer(certId).ToString()));
+               r = pMap->Add(new (std::nothrow) String(OLD_CERT_ID_KEY), new (std::nothrow) String(Integer(certId).ToString()));
                TryCatchResult(!IsFailed(r), , r, "[%s] Propagating.", GetErrorMessage(r));
 
-               pMap->Add(new (std::nothrow) String(CERT_ID_KEY), new (std::nothrow) String(Integer(certId).ToString()));
+               r = pMap->Add(new (std::nothrow) String(CERT_ID_KEY), new (std::nothrow) String(Integer(certId).ToString()));
                TryCatchResult(!IsFailed(r), , r, "[%s] Propagating.", GetErrorMessage(r));
 
                // send result