From d10a46220c536a7a44972154d4fb4a83e18cbdd4 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Mon, 12 May 2025 16:59:12 +0200 Subject: profile: gracefully handle empty response ... by ignoring it rather than trying to dereference a nullptr. --- src/buildtool/profile/profile.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/buildtool/profile/profile.cpp b/src/buildtool/profile/profile.cpp index 1407ddbd..7151ec13 100644 --- a/src/buildtool/profile/profile.cpp +++ b/src/buildtool/profile/profile.cpp @@ -103,6 +103,9 @@ void Profile::SetCLI(CommandLineArguments const& cli) { void Profile::NoteActionCompleted(std::string const& id, IExecutionResponse::Ptr const& response, std::string const& cwd) { + if (not response) { + return; + } std::unique_lock lock{mutex_}; auto artifacts = response->Artifacts(); std::optional out = std::nullopt; -- cgit v1.2.3