aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/events.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2014-09-24 13:39:28 +0200
committerThomas White <taw@physics.org>2014-09-24 13:39:28 +0200
commit10f77e1e2f11baae436bb149066625d295ae521a (patch)
treed5c7e382dce73695ced86d0af895877bf13b2086 /libcrystfel/src/events.c
parentf88f11adb68b7b11dbc653543c989108aeb96a8f (diff)
Move photon_energy to "geometry" file
Diffstat (limited to 'libcrystfel/src/events.c')
-rw-r--r--libcrystfel/src/events.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libcrystfel/src/events.c b/libcrystfel/src/events.c
index 633c9677..c9cc1ece 100644
--- a/libcrystfel/src/events.c
+++ b/libcrystfel/src/events.c
@@ -253,7 +253,9 @@ char *get_event_string(struct event *ev)
char *new_ret_string;
int ret_string_len;
- if ( ev->path_length != 0) {
+ if ( ev == NULL ) return "null event";
+
+ if ( ev->path_length != 0 ) {
int pi;