From a9996877480287308d8273c8469c87fa48b3a3ea Mon Sep 17 00:00:00 2001 From: "Dr. Michael Lauer" Date: Wed, 28 Feb 2018 13:14:53 +0100 Subject: [PATCH] compiler: fix critical when vala is called without run args https://bugzilla.gnome.org/show_bug.cgi?id=793657 --- compiler/valacompiler.vala | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/compiler/valacompiler.vala b/compiler/valacompiler.vala index 522b41ac5..63a567e70 100644 --- a/compiler/valacompiler.vala +++ b/compiler/valacompiler.vala @@ -570,9 +570,11 @@ class Vala.Compiler { } string[] target_args = { output }; - string[] target_run_args = run_args.split (" "); - foreach (string arg in target_run_args) { - target_args += arg; + if (run_args != null) { + string[] target_run_args = run_args.split (" "); + foreach (string arg in target_run_args) { + target_args += arg; + } } try { -- 2.47.2