Skip to content

Commit

Permalink
Allow set null
Browse files Browse the repository at this point in the history
  • Loading branch information
yujincheng08 committed Dec 7, 2023
1 parent 4c62b5d commit 92a6a72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lsplant/src/main/jni/include/utils/jni_helper.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<jobject> clone() const {
Expand Down

0 comments on commit 92a6a72

Please sign in to comment.