From 154c5f794980605fd9456d794650c6e49635a177 Mon Sep 17 00:00:00 2001 From: M Furkan USLU Date: Sat, 10 Aug 2019 01:48:34 +0300 Subject: ccmake: handle cache entries with empty STRINGS property Fixes: #19585 --- Source/CursesDialog/cmCursesOptionsWidget.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/CursesDialog/cmCursesOptionsWidget.cxx b/Source/CursesDialog/cmCursesOptionsWidget.cxx index a8c4933..eb773ad 100644 --- a/Source/CursesDialog/cmCursesOptionsWidget.cxx +++ b/Source/CursesDialog/cmCursesOptionsWidget.cxx @@ -23,6 +23,9 @@ cmCursesOptionsWidget::cmCursesOptionsWidget(int width, int height, int left, bool cmCursesOptionsWidget::HandleInput(int& key, cmCursesMainForm* /*fm*/, WINDOW* w) { + if (this->Options.empty()) { + return false; + } switch (key) { case 10: // 10 == enter case KEY_ENTER: -- cgit v0.12