From: so.yu Date: Tue, 16 Apr 2013 13:21:30 +0000 (+0900) Subject: Fix error handling code X-Git-Tag: submit/tizen/20130830.084259~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=15629779d289416d7408ff7592f6aef36683b50f;p=platform%2Fframework%2Fnative%2Fcertificate-selector.git Fix error handling code Change-Id: I821402f37a4009f4e3ef4437d28a2dae1aa9a3ea Signed-off-by: so.yu --- diff --git a/src/CertificateSelectorForm.cpp b/src/CertificateSelectorForm.cpp index 0dc36ca..d99f678 100644 --- a/src/CertificateSelectorForm.cpp +++ b/src/CertificateSelectorForm.cpp @@ -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