From 80acada9e7e2c0d4031464aaf8d182f88b08386c Mon Sep 17 00:00:00 2001 From: James Pack Date: Thu, 12 Jun 2025 19:22:13 -0400 Subject: [PATCH] Ensure items is not null before checking its size so we dont crash --- src/cascadia/TerminalControl/TermControl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cascadia/TerminalControl/TermControl.cpp b/src/cascadia/TerminalControl/TermControl.cpp index 7118c7a8689..b38c651e3db 100644 --- a/src/cascadia/TerminalControl/TermControl.cpp +++ b/src/cascadia/TerminalControl/TermControl.cpp @@ -3180,7 +3180,7 @@ namespace winrt::Microsoft::Terminal::Control::implementation } CATCH_LOG(); - if (items.Size() > 0) + if (items && items.Size() > 0) { std::vector fullPaths;