diff options
-rw-r--r-- | libcrystfel/src/datatemplate.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libcrystfel/src/datatemplate.c b/libcrystfel/src/datatemplate.c index 7f7f24af..cea963ec 100644 --- a/libcrystfel/src/datatemplate.c +++ b/libcrystfel/src/datatemplate.c @@ -973,6 +973,11 @@ static int lookup_panel(const char *panel_name, return 0; } + if ( panel_name == NULL ) { + ERROR("Panel name must be specified.\n"); + return 1; + } + for ( i=0; i<dt->n_panels; i++ ) { if ( strcmp(dt->panels[i].name, panel_name) == 0 ) { *res = i; |