From e9bef327043c9bec82260941e224eec42225cf20 Mon Sep 17 00:00:00 2001 From: rdanbrook <1869094+rdanbrook@users.noreply.github.com> Date: Mon, 21 Oct 2024 22:56:54 -0600 Subject: [PATCH] FLTK: Input message box null pointer check --- source/fltkui/fltkui_settings.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/fltkui/fltkui_settings.cpp b/source/fltkui/fltkui_settings.cpp index 940e8e9..5e6312d 100644 --- a/source/fltkui/fltkui_settings.cpp +++ b/source/fltkui/fltkui_settings.cpp @@ -169,6 +169,10 @@ NstSettingsWindow::NstSettingsWindow(int w, int h, const char* t, JGManager& j, } void NstSettingsWindow::show_msgbox(bool show) { + if (!msgbox) { + return; + } + if (show) { msgbox->label("Press the desired key, ESC to clear"); msgbox->show();