Skip to content

Commit

Permalink
Missing return
Browse files Browse the repository at this point in the history
  • Loading branch information
yujincheng08 authored Dec 7, 2023
1 parent 5ea18ee commit c102d81
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 @@ -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_);
}

Expand Down

0 comments on commit c102d81

Please sign in to comment.