Browse Source

Replace segfault with actual error message

Martijn Braam 1 year ago
parent
commit
b615d23de1
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/process_pipeline.c

+ 5 - 0
src/process_pipeline.c

@@ -835,6 +835,11 @@ process_capture_burst(GdkTexture *thumb)
         bool save_dng = g_settings_get_boolean(settings, "save-raw");
         char *postprocessor = g_settings_get_string(settings, "postprocessor");
 
+        if (postprocessor == NULL) {
+                g_printerr("Postprocessor setting is null\n");
+                return;
+        }
+
         char save_dng_s[2] = "0";
         if (save_dng) {
                 save_dng_s[0] = '1';