From b472f63d0b0f6f2549d11b196ca1849b106f6ff3 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 26 Jun 2024 21:07:32 +0300 Subject: Add some asserts as part of investigation of GH issue #397 --- bpkg/pkg-build.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bpkg/pkg-build.cxx b/bpkg/pkg-build.cxx index 6a9ad7d..e355783 100644 --- a/bpkg/pkg-build.cxx +++ b/bpkg/pkg-build.cxx @@ -8019,7 +8019,11 @@ namespace bpkg // Distinguish between the package and archive/directory cases. // - const package_location& pl (ap->locations[0]); // Got to have one. + assert (!ap->locations.empty ()); // Got to have one. + + const package_location& pl (ap->locations[0]); + + assert (pl.repository_fragment != nullptr); if (pl.repository_fragment.object_id () != "") // Special root? { -- cgit v1.1