aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2019-01-11 11:50:34 +0100
committerThomas White <taw@physics.org>2019-03-14 11:36:56 +0100
commit30476dd519f311431f45a7db7cf5a8717811b69b (patch)
tree221a624013a0138c9f39d5250ce7ba15250a4b56 /libcrystfel/src
parent4d62f31f90b76bce8b66fe2be6ccccb7b1542209 (diff)
Clean up MessagePack stuff
Diffstat (limited to 'libcrystfel/src')
-rw-r--r--libcrystfel/src/image.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libcrystfel/src/image.c b/libcrystfel/src/image.c
index 63fd54f9..7dfb9c97 100644
--- a/libcrystfel/src/image.c
+++ b/libcrystfel/src/image.c
@@ -994,6 +994,8 @@ enum imagefile_type imagefile_get_type(struct imagefile *f)
struct hdfile *imagefile_get_hdfile(struct imagefile *f)
{
+ if ( f == NULL ) return NULL;
+
if ( f->type != IMAGEFILE_HDF5 ) {
ERROR("Not an HDF5 file!\n");
return NULL;