diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2018-08-06 18:15:50 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2018-08-06 18:15:50 (GMT) |
commit | 78c4623235ea54ec2adc9d079e9f5c9e87f870ba (patch) | |
tree | a90becb4636cf1f659d004caf84cfdda4edc20c4 /java/src/jni/h5dImp.c | |
parent | 51a5d112ade5dd3de0b9e62a38ab4dc888bf5cf5 (diff) | |
download | hdf5-78c4623235ea54ec2adc9d079e9f5c9e87f870ba.zip hdf5-78c4623235ea54ec2adc9d079e9f5c9e87f870ba.tar.gz hdf5-78c4623235ea54ec2adc9d079e9f5c9e87f870ba.tar.bz2 |
HDFFV-10544 Improve JNI exception handling
Diffstat (limited to 'java/src/jni/h5dImp.c')
-rw-r--r-- | java/src/jni/h5dImp.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/java/src/jni/h5dImp.c b/java/src/jni/h5dImp.c index d7f1b57..cea6bb4 100644 --- a/java/src/jni/h5dImp.c +++ b/java/src/jni/h5dImp.c @@ -1343,7 +1343,7 @@ Java_hdf_hdf5lib_H5_H5DwriteVL htri_t isVlenStr = 0; htri_t isComplex = 0; - if (buf == NULL) { + if (buf == NULL) { h5nullArgument(env, "H5DwriteVL: buf is NULL"); } /* end if */ else { @@ -1362,14 +1362,10 @@ Java_hdf_hdf5lib_H5_H5DwriteVL isVlenStr = 1; /* strings created by H5Tvlen_create(H5T_C_S1) */ } if (isStr == 0 || isComplex>0 || isVlenStr) { - h5unimplemented(env, "H5DwriteVL: VL types, which are not string type, not implemented"); - status = -1; -#ifdef notdef status = H5DwriteVL_asstr(env, (hid_t)dataset_id, (hid_t)mem_type_id, (hid_t)mem_space_id, (hid_t)file_space_id, (hid_t)xfer_plist_id, buf); -#endif - } + } else if (isStr > 0) { status = H5DwriteVL_str(env, (hid_t)dataset_id, (hid_t)mem_type_id, (hid_t)mem_space_id, (hid_t)file_space_id, |