diff --git a/plug-ins/common/file-cel.c b/plug-ins/common/file-cel.c index 6292d7aa2e..f1aed6f67a 100644 --- a/plug-ins/common/file-cel.c +++ b/plug-ins/common/file-cel.c @@ -186,7 +186,10 @@ run (const gchar *name, if (run_mode == GIMP_RUN_NONINTERACTIVE) { palette_file = param[3].data.d_string; - data_length = strlen (palette_file) + 1; + if (palette_file) + data_length = strlen (palette_file) + 1; + else + data_length = 0; } else if (run_mode == GIMP_RUN_INTERACTIVE) {