diff options
Diffstat (limited to 'libcrystfel/src/cell-utils.c')
-rw-r--r-- | libcrystfel/src/cell-utils.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libcrystfel/src/cell-utils.c b/libcrystfel/src/cell-utils.c index 7c7a58a6..43cf4337 100644 --- a/libcrystfel/src/cell-utils.c +++ b/libcrystfel/src/cell-utils.c @@ -1162,7 +1162,12 @@ UnitCell *load_cell_from_pdb(const char *filename) fclose(fh); - validate_cell(cell); + if ( cell != NULL ) { + validate_cell(cell); + } else { + ERROR("Failed to load cell from %s\n", filename); + } + return cell; } |