From 92a6a727e22ca2c73384af0d219c35dfed41400a Mon Sep 17 00:00:00 2001 From: LoveSy Date: Thu, 7 Dec 2023 10:57:05 +0800 Subject: [PATCH] Allow set null --- lsplant/src/main/jni/include/utils/jni_helper.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lsplant/src/main/jni/include/utils/jni_helper.hpp b/lsplant/src/main/jni/include/utils/jni_helper.hpp index 1ae9d238e..26079218c 100644 --- a/lsplant/src/main/jni/include/utils/jni_helper.hpp +++ b/lsplant/src/main/jni/include/utils/jni_helper.hpp @@ -1088,7 +1088,7 @@ class JObjectArrayElement { void reset(jobject item) { item_.reset(item); - if (item_) JNI_SafeInvoke(env_, &JNIEnv::SetObjectArrayElement, array_, i_, item_); + JNI_SafeInvoke(env_, &JNIEnv::SetObjectArrayElement, array_, i_, item_); } ScopedLocalRef clone() const {