From 92ffffe650f55751443a254c29842ef6d259b092 Mon Sep 17 00:00:00 2001 From: liwang <965027894@qq.com> Date: Sat, 30 Aug 2025 14:17:07 +0800 Subject: [PATCH] =?UTF-8?q?sts=5Faction=5Fbutton.cpp=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=A0=BC=E5=BC=8F=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: liwang <965027894@qq.com> --- frameworks/ets/ani/src/sts_bundle_option.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frameworks/ets/ani/src/sts_bundle_option.cpp b/frameworks/ets/ani/src/sts_bundle_option.cpp index e3cf681e6..aa924feaa 100644 --- a/frameworks/ets/ani/src/sts_bundle_option.cpp +++ b/frameworks/ets/ani/src/sts_bundle_option.cpp @@ -119,8 +119,7 @@ bool WrapBundleOption(ani_env* env, return false; } ani_class bundleCls = nullptr; - if (!CreateClassObjByClassName(env, - "notification.NotificationCommonDef.BundleOptionInner", bundleCls, bundleObject) + if (!CreateClassObjByClassName(env, "notification.NotificationCommonDef.BundleOptionInner", bundleCls, bundleObject) || bundleCls == nullptr || bundleObject == nullptr) { ANS_LOGE("WrapBundleOption: create BundleOption failed"); return false; -- Gitee