summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-08-20 12:56:21 (GMT)
committerBrad King <brad.king@kitware.com>2019-08-20 12:56:21 (GMT)
commitfeec57e8001a2116434f48bb9628c100cd3b2c1a (patch)
tree8a71d658673f6d6b080dec963a21968451d62e31
parentff7f8b81d14f306374346e56af38f19e03ff93ee (diff)
parent154c5f794980605fd9456d794650c6e49635a177 (diff)
downloadCMake-feec57e8001a2116434f48bb9628c100cd3b2c1a.zip
CMake-feec57e8001a2116434f48bb9628c100cd3b2c1a.tar.gz
CMake-feec57e8001a2116434f48bb9628c100cd3b2c1a.tar.bz2
Merge branch 'ccmake-crash-on-empty-strings-property' into release-3.15
Merge-request: !3678
-rw-r--r--Source/CursesDialog/cmCursesOptionsWidget.cxx3
1 files changed, 3 insertions, 0 deletions
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: