summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/components/application_manager/src/policies/policy_handler.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/components/application_manager/src/policies/policy_handler.cc b/src/components/application_manager/src/policies/policy_handler.cc
index cee33b229b..11decf45c3 100644
--- a/src/components/application_manager/src/policies/policy_handler.cc
+++ b/src/components/application_manager/src/policies/policy_handler.cc
@@ -1656,6 +1656,10 @@ std::string PolicyHandler::GetNextUpdateUrl(
POLICY_LIB_CHECK_OR_RETURN(std::string());
app_id = ChoosePTUApplication(iteration_type);
+ if (0 == app_id) {
+ return std::string();
+ }
+
// Use cached URL for retries if it was provided by the HMI
if (PTUIterationType::RetryIteration == iteration_type &&
!retry_update_url_.empty()) {