aboutsummaryrefslogtreecommitdiff
path: root/src/gui_index.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui_index.c')
-rw-r--r--src/gui_index.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui_index.c b/src/gui_index.c
index 7aaefbf6..8524cc79 100644
--- a/src/gui_index.c
+++ b/src/gui_index.c
@@ -574,6 +574,11 @@ static void run_indexing_once(struct crystfelproject *proj)
char *tmpdir;
int r;
+ if ( proj->cur_image == NULL ) {
+ ERROR("No image to index!\n");
+ return;
+ }
+
if ( proj->indexing_params.cell_file != NULL ) {
cell = load_cell_from_file(proj->indexing_params.cell_file);
} else {