Skip to content

Commit

Permalink
Fix Java Coverity issue
Browse files Browse the repository at this point in the history
Fixing a possible error that Coverity pointed out in
ompi_java_exceptionCheck.

Signed-off-by: Nathaniel Graham <nrgraham23@gmail.com>
  • Loading branch information
nrgraham23 committed Jun 23, 2016
1 parent 08b1438 commit bb9485b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ompi/mpi/java/c/mpi_MPI.c
Original file line number Diff line number Diff line change
Expand Up @@ -1157,9 +1157,8 @@ jboolean ompi_java_exceptionCheck(JNIEnv *env, int rc)
(*env)->DeleteLocalRef(env, jmessage);
return JNI_TRUE;
}
else if (JNI_TRUE == jni_exception) {
return JNI_TRUE;
}
/* If we get here, a JNI error has occurred. */
return JNI_TRUE;
}

void* ompi_java_attrSet(JNIEnv *env, jbyteArray jval)
Expand Down

0 comments on commit bb9485b

Please sign in to comment.