diff --git a/ui/drivers/qt/ui_qt_application.cpp b/ui/drivers/qt/ui_qt_application.cpp index f52059395d..ff36e92b59 100644 --- a/ui/drivers/qt/ui_qt_application.cpp +++ b/ui/drivers/qt/ui_qt_application.cpp @@ -161,7 +161,8 @@ static void ui_application_qt_process_events(void) static void ui_application_qt_quit(void) { - appHandler->exit(); + if (appHandler) + appHandler->exit(); } static void ui_application_qt_run(void *args)