From 1934789145d65200286d5bce15bba0500039aca0 Mon Sep 17 00:00:00 2001 From: Brendan Fletcher Date: Tue, 3 Sep 2024 16:22:24 -0400 Subject: [PATCH] Prevent caching empty program names --- gui/qt/basicdebugger.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gui/qt/basicdebugger.cpp b/gui/qt/basicdebugger.cpp index 2acf4f635..c29d932ae 100644 --- a/gui/qt/basicdebugger.cpp +++ b/gui/qt/basicdebugger.cpp @@ -166,6 +166,9 @@ MainWindow::debug_basic_status_t MainWindow::debugBasicPrgmLookup(bool allowSwit if (!m_basicShowTempParser) { return DBG_BASIC_NO_EXECUTING_PRGM; } + } else if (name[1] == '\0') { + // empty name happens during Input for some reason + return DBG_BASIC_NO_EXECUTING_PRGM; } else { // lookup in map to see if we've already parsed this file auto basicPrgmIter = m_basicPrgmsMap.constFind(var_name);