Skip to content
This repository was archived by the owner on Sep 30, 2022. It is now read-only.

Commit a7bc948

Browse files
committed
Fix Java Coverity issue
Fixing a possible error that Coverity pointed out in ompi_java_exceptionCheck. Signed-off-by: Nathaniel Graham <[email protected]>
1 parent c50b8fc commit a7bc948

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ompi/mpi/java/c/mpi_MPI.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1157,9 +1157,8 @@ jboolean ompi_java_exceptionCheck(JNIEnv *env, int rc)
11571157
(*env)->DeleteLocalRef(env, jmessage);
11581158
return JNI_TRUE;
11591159
}
1160-
else if (JNI_TRUE == jni_exception) {
1161-
return JNI_TRUE;
1162-
}
1160+
/* If we get here, a JNI error has occurred. */
1161+
return JNI_TRUE;
11631162
}
11641163

11651164
void* ompi_java_attrSet(JNIEnv *env, jbyteArray jval)

0 commit comments

Comments
 (0)