diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2025-02-25 11:46:51 +0100 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2025-02-27 09:03:30 +0100 |
commit | b3c6d3572784575811ff130d859e92b799e77bb3 (patch) | |
tree | dc37456d28fa9e464bdd50eb3218a6917c73e4be /test/buildtool/execution_engine/executor/executor.test.cpp | |
parent | 9a987188a38cc18f6a485bd5def16aded10fe1f6 (diff) | |
download | justbuild-b3c6d3572784575811ff130d859e92b799e77bb3.tar.gz |
ArtifactBlob: Check access to the content
Diffstat (limited to 'test/buildtool/execution_engine/executor/executor.test.cpp')
-rw-r--r-- | test/buildtool/execution_engine/executor/executor.test.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/buildtool/execution_engine/executor/executor.test.cpp b/test/buildtool/execution_engine/executor/executor.test.cpp index 36b407c7..9af21383 100644 --- a/test/buildtool/execution_engine/executor/executor.test.cpp +++ b/test/buildtool/execution_engine/executor/executor.test.cpp @@ -226,7 +226,11 @@ class TestApi : public IExecutionApi { return std::all_of( blobs.begin(), blobs.end(), [this](auto const& blob) { // for local artifacts - auto it1 = config_.artifacts.find(*blob.ReadContent()); + auto const content = blob.ReadContent(); + if (content == nullptr) { + return false; + } + auto it1 = config_.artifacts.find(*content); if (it1 != config_.artifacts.end() and it1->second.uploads) { return true; } |