aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2012-12-04 16:52:46 +0100
committerThomas White <taw@physics.org>2012-12-04 16:52:46 +0100
commit6fc63aea29baa683d987996c0d4159ff1105c260 (patch)
treef1f66fb80154d604112d27c8ec141010a01dc866 /src
parent9e296d9f3efa700e05ba6c800e9b0dbf067bd272 (diff)
get_hkl: Fix a segfault
Diffstat (limited to 'src')
-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);