[gnome-builder/wip/gtk4-port] libide/foundry: check for valid run tool



commit 26a5ee223fc31469f5132240d428ffafc533dc06
Author: Christian Hergert <chergert redhat com>
Date:   Mon Jun 27 17:30:03 2022 -0700

    libide/foundry: check for valid run tool

 src/libide/foundry/ide-run-manager.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/libide/foundry/ide-run-manager.c b/src/libide/foundry/ide-run-manager.c
index dcbcf8949..bd723a484 100644
--- a/src/libide/foundry/ide-run-manager.c
+++ b/src/libide/foundry/ide-run-manager.c
@@ -774,7 +774,8 @@ ide_run_manager_run_subprocess_wait_check_cb (GObject      *object,
   else
     ide_task_return_boolean (task, TRUE);
 
-  _ide_run_tool_emit_stopped (self->run_tool);
+  if (self->run_tool != NULL)
+    _ide_run_tool_emit_stopped (self->run_tool);
 
   g_signal_emit (self, signals[STOPPED], 0);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]