From c102d815035d6a6bdef09cb19baf125663bc5cf0 Mon Sep 17 00:00:00 2001 From: LoveSy Date: Thu, 7 Dec 2023 10:13:36 +0800 Subject: [PATCH] Missing return --- 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 568c49b5b..9bc9b4f95 100644 --- a/lsplant/src/main/jni/include/utils/jni_helper.hpp +++ b/lsplant/src/main/jni/include/utils/jni_helper.hpp @@ -1032,7 +1032,7 @@ class JObjectArrayElement { friend class ScopedLocalRef; auto obtain() { - if (i_ < 0 || i_ >= size_) ScopedLocalRef{nullptr}; + if (i_ < 0 || i_ >= size_) return ScopedLocalRef{nullptr}; return JNI_SafeInvoke(env_, &JNIEnv::GetObjectArrayElement, array_, i_); }