summaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2019-07-08 18:52:05 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2019-07-08 18:52:05 (GMT)
commit1878e68558b83bb2d822c298aa7b8373a2bde273 (patch)
tree3618eb03811ed83f407a8a92ca8e5fc5272a3f22 /java/src
parent3dd7137430c05153d5cc6a692ef66f9e5ceea91f (diff)
downloadhdf5-1878e68558b83bb2d822c298aa7b8373a2bde273.zip
hdf5-1878e68558b83bb2d822c298aa7b8373a2bde273.tar.gz
hdf5-1878e68558b83bb2d822c298aa7b8373a2bde273.tar.bz2
Move before null check
Diffstat (limited to 'java/src')
-rw-r--r--java/src/jni/h5lImp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/src/jni/h5lImp.c b/java/src/jni/h5lImp.c
index 7413023..7eee3d4 100644
--- a/java/src/jni/h5lImp.c
+++ b/java/src/jni/h5lImp.c
@@ -508,11 +508,11 @@ Java_hdf_hdf5lib_H5_H5Lget_1value_1by_1idx
UNUSED(clss);
+ infobuf.type = H5L_TYPE_ERROR;
+
if (NULL == name)
H5_NULL_ARGUMENT_ERROR(ENVONLY, "H5Lget_val_by_idx: group name is NULL");
- infobuf.type = H5L_TYPE_ERROR;
-
PIN_JAVA_STRING(ENVONLY, name, grpName, NULL, "H5Lget_val_by_idx: group name not pinned");
/* Get the length of the link value */