aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/get_hkl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/get_hkl.c b/src/get_hkl.c
index 9a966ef9..7b66e427 100644
--- a/src/get_hkl.c
+++ b/src/get_hkl.c
@@ -537,6 +537,12 @@ int main(int argc, char *argv[])
RefList *new;
+ /* Can't do this if point group is invalid */
+ if ( mero == NULL ) {
+ ERROR("Need point group to trim centrics.\n");
+ return 1;
+ }
+
STATUS("Trimming duplicate reflections in %s\n",
symmetry_name(mero));
new = trim_centrics(input, mero);