diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2023-05-27 16:49:37 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-27 16:49:37 (GMT) |
commit | 40324e0c31eef2cfcf0289079c58f81717d65184 (patch) | |
tree | ac1cc1d5651e223e9d16b05ffd94e3d0455be695 /java/src/jni/h5pFAPLImp.c | |
parent | 79bb60c3f6f67411e5d70b84743fc9f6b6143cbc (diff) | |
download | hdf5-40324e0c31eef2cfcf0289079c58f81717d65184.zip hdf5-40324e0c31eef2cfcf0289079c58f81717d65184.tar.gz hdf5-40324e0c31eef2cfcf0289079c58f81717d65184.tar.bz2 |
Cleans up Java JNI warnings and add java to -Werror checks (#2383)
Diffstat (limited to 'java/src/jni/h5pFAPLImp.c')
-rw-r--r-- | java/src/jni/h5pFAPLImp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/java/src/jni/h5pFAPLImp.c b/java/src/jni/h5pFAPLImp.c index f094aaf..80ed6c6 100644 --- a/java/src/jni/h5pFAPLImp.c +++ b/java/src/jni/h5pFAPLImp.c @@ -1252,6 +1252,8 @@ Java_hdf_hdf5lib_H5_H5Pget_1cache(JNIEnv *env, jclass clss, jlong plist, jintArr if (NULL != rdcc_nbytes) PIN_LONG_ARRAY(ENVONLY, rdcc_nbytes, nbytesArray, &isCopy, "H5Pget_cache: nbytesArray array not pinned"); + if (NULL == nbytesArray) + H5_NULL_ARGUMENT_ERROR(ENVONLY, "nbytesArray should not be NULL after pinning"); { /* direct cast (size_t *)variable fails on 32-bit environment */ |