From 62778dbfbebdbe53da44e07c46a6642619b578fb Mon Sep 17 00:00:00 2001 From: savsch <119003089+savsch@users.noreply.github.com> Date: Sun, 2 Mar 2025 20:09:23 +0530 Subject: [PATCH] [android] Fix crash upon deleting a POI via the Editor Resolves #10211 Signed-off-by: savsch <119003089+savsch@users.noreply.github.com> --- map/framework.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/map/framework.cpp b/map/framework.cpp index f96a8f253c..8a176dd13f 100644 --- a/map/framework.cpp +++ b/map/framework.cpp @@ -3407,6 +3407,9 @@ bool Framework::ShouldShowProducts() const if (!m_usageStats.IsLoyalUser()) return false; + if (!HasPlacePageInfo()) // happens after the POI is deleted via the editor + return false; + if (!storage::IsPointCoveredByDownloadedMaps(GetCurrentPlacePageInfo().GetMercator(), m_storage, *m_infoGetter)) return false;