diff options
Diffstat (limited to 'src/pattern_sim.c')
-rw-r--r-- | src/pattern_sim.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pattern_sim.c b/src/pattern_sim.c index 39931bdb..05cdcf9d 100644 --- a/src/pattern_sim.c +++ b/src/pattern_sim.c @@ -319,6 +319,9 @@ int main(int argc, char *argv[]) image.height = 1024; image.lambda = ph_en_to_lambda(eV_to_J(PHOTON_ENERGY)); /* Wavelength */ cell = load_cell_from_pdb(filename); + if ( cell == NULL ) { + exit(1); + } image.filename = NULL; image.features = NULL; image.flags = NULL; |