From e3adcac4f6f0d809cd2ab8722c1db647e9d4f2db Mon Sep 17 00:00:00 2001 From: liubinyu Date: Wed, 17 Jul 2024 22:15:53 +0800 Subject: [PATCH] fix codecheck Change-Id: Ifa9f7e37a3758f0b10644cb83e6dc2dd8b23a8ef --- frameworks/native/appkit/app/main_thread.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frameworks/native/appkit/app/main_thread.cpp b/frameworks/native/appkit/app/main_thread.cpp index 7a20d3908d..3e47c7d3e2 100644 --- a/frameworks/native/appkit/app/main_thread.cpp +++ b/frameworks/native/appkit/app/main_thread.cpp @@ -1295,8 +1295,8 @@ CJUncaughtExceptionInfo MainThread::CreateCjExceptionInfo(const std::string &bun time_t timet; time(&timet); std::string errName = errorObj.name ? errorObj.name : "[none]"; - std::string errMsg = errorObj.name ? errorObj.message : "[none]"; - std::string errStack = errorObj.name ? errorObj.stack : "[none]"; + std::string errMsg = errorObj.message ? errorObj.message : "[none]"; + std::string errStack = errorObj.stack ? errorObj.stack : "[none]"; HiSysEventWrite(OHOS::HiviewDFX::HiSysEvent::Domain::AAFWK, "CJ_ERROR", OHOS::HiviewDFX::HiSysEvent::EventType::FAULT, EVENT_KEY_PACKAGE_NAME, bundleName,