From ae779a42e66d2d6eedc178b9f2ea2248dbbbc629 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sat, 24 Aug 2024 11:58:03 +0200 Subject: [PATCH] Fixed an issue where scraping using TheGamesDB would crash the application --- es-app/src/guis/GuiScraperSearch.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/es-app/src/guis/GuiScraperSearch.cpp b/es-app/src/guis/GuiScraperSearch.cpp index 9c1f74671..1b7d14c00 100644 --- a/es-app/src/guis/GuiScraperSearch.cpp +++ b/es-app/src/guis/GuiScraperSearch.cpp @@ -258,7 +258,8 @@ void GuiScraperSearch::resizeMetadata() float maxLblWidth {0.0f}; for (auto it = mMD_Pairs.cbegin(); it != mMD_Pairs.cend(); ++it) { it->first->setFont(fontLbl); - if (it->first->getTextCache()->metrics.size.x > maxLblWidth) + if (it->first->getTextCache() != nullptr && + it->first->getTextCache()->metrics.size.x > maxLblWidth) maxLblWidth = it->first->getTextCache()->metrics.size.x + (16.0f * (mRenderer->getIsVerticalOrientation() ? mRenderer->getScreenHeightModifier() :