summaryrefslogtreecommitdiffstats
path: root/java/src/jni/h5pLAPLImp.c
diff options
context:
space:
mode:
Diffstat (limited to 'java/src/jni/h5pLAPLImp.c')
-rw-r--r--java/src/jni/h5pLAPLImp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/java/src/jni/h5pLAPLImp.c b/java/src/jni/h5pLAPLImp.c
index c4502d5..f2cb80a 100644
--- a/java/src/jni/h5pLAPLImp.c
+++ b/java/src/jni/h5pLAPLImp.c
@@ -96,6 +96,9 @@ Java_hdf_hdf5lib_H5_H5Pset_1elink_1prefix
UNUSED(clss);
+ if (NULL == prefix)
+ H5_NULL_ARGUMENT_ERROR(ENVONLY, "H5Pset_elink_prefix: prefix is NULL");
+
PIN_JAVA_STRING(ENVONLY, prefix, linkPrefix, NULL, "H5Pset_elink_prefix: link prefix not pinned");
if ((retVal = H5Pset_elink_prefix((hid_t)lapl_id, linkPrefix)) < 0)