diff --git a/src/build.cpp b/src/build.cpp index 278e401..47a3433 100644 --- a/src/build.cpp +++ b/src/build.cpp @@ -157,6 +157,7 @@ void build::set_lp(launchpad* lp_ptr) { } const std::optional build::getCurrentSourcePublication() { + if (current_source_publication_link.empty()) return std::nullopt; auto response = lp->api_get(current_source_publication_link); if (!response) return std::nullopt; auto data = nlohmann::json::parse(response.value());