aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/index.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2013-02-09 22:16:25 -0800
committerThomas White <taw@physics.org>2013-02-09 22:16:25 -0800
commit00d4c6ce684b1352d585a287f8ef31c1c30a7c35 (patch)
tree90a8442ff28aa1a64e9840043ee7b72faa6081da /libcrystfel/src/index.c
parent11fe97d53a627fd5caf067bd9fe8f967cf3a72df (diff)
Complain if a unit cell is needed and not provided
Diffstat (limited to 'libcrystfel/src/index.c')
-rw-r--r--libcrystfel/src/index.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libcrystfel/src/index.c b/libcrystfel/src/index.c
index 949be146..cb3639e4 100644
--- a/libcrystfel/src/index.c
+++ b/libcrystfel/src/index.c
@@ -88,6 +88,8 @@ IndexingPrivate **prepare_indexing(IndexingMethod *indm, UnitCell *cell,
}
+ if ( iprivs[n] == NULL ) return NULL;
+
}
iprivs[n] = NULL;