From 9e500b8ecc74138dad76a1603d04ee0202ca134b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=91=A8=E9=91=AB?= Date: Thu, 10 Jul 2025 20:38:43 +0800 Subject: [PATCH] =?UTF-8?q?securitylabel=20=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 周鑫 --- interfaces/kits/js/src/mod_hash/ani/hash_ani.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/interfaces/kits/js/src/mod_hash/ani/hash_ani.cpp b/interfaces/kits/js/src/mod_hash/ani/hash_ani.cpp index 6acb4389c..18b07d31b 100644 --- a/interfaces/kits/js/src/mod_hash/ani/hash_ani.cpp +++ b/interfaces/kits/js/src/mod_hash/ani/hash_ani.cpp @@ -54,6 +54,7 @@ ani_string HashAni::HashSync(ani_env *env, [[maybe_unused]] ani_class clazz, ani const auto &res = ret.GetData().value(); auto [succ, result] = TypeConverter::ToAniString(env, res); + if (!succ) { HILOGE("Convert hash value to ani string failed"); ErrorHandler::Throw(env, UNKNOWN_ERR); -- Gitee