From 3148a8a437a9a5113715150b7d4afcc8ed5a0bb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Thu, 4 May 2023 08:58:52 +0200 Subject: [PATCH] PopupMultiChoiceDynamic: Check that valueStr_ isn't null before writing to it. Don't see how this happened. --- Common/UI/PopupScreens.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Common/UI/PopupScreens.h b/Common/UI/PopupScreens.h index acb37a030a36..0e0c13bcbc5e 100644 --- a/Common/UI/PopupScreens.h +++ b/Common/UI/PopupScreens.h @@ -272,7 +272,9 @@ class PopupMultiChoiceDynamic : public PopupMultiChoice { protected: void PostChoiceCallback(int num) override { - *valueStr_ = choices_[num]; + if (valueStr_) { + *valueStr_ = choices_[num]; + } } private: