Missing return

This commit is contained in:
LoveSy 2023-12-07 10:13:36 +08:00
parent 0d144a0881
commit 3ce7b1d1a0

View File

@ -1032,7 +1032,7 @@ class JObjectArrayElement {
friend class ScopedLocalRef<jobjectArray>;
auto obtain() {
if (i_ < 0 || i_ >= size_) ScopedLocalRef<jobject>{nullptr};
if (i_ < 0 || i_ >= size_) return ScopedLocalRef<jobject>{nullptr};
return JNI_SafeInvoke(env_, &JNIEnv::GetObjectArrayElement, array_, i_);
}