[PR #14678] [WPF] Add TermCore null checks to HwndTerminal #30215

Closed
opened 2026-01-31 09:39:22 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/14678

State: closed
Merged: Yes


#14461 is caused by a null pointer exception in TerminalIsSelectionActive(). Since this reveals that it is possible to enter a state where _terminal is null, I've gone ahead and added null-checks throughout the code to make it more stable.

Closes #14461

Validation Steps Performed

Ran locally. Still works.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/14678 **State:** closed **Merged:** Yes --- #14461 is caused by a null pointer exception in `TerminalIsSelectionActive()`. Since this reveals that it is possible to enter a state where `_terminal` is null, I've gone ahead and added null-checks throughout the code to make it more stable. Closes #14461 ## Validation Steps Performed Ran locally. Still works.
claunia added the pull-request label 2026-01-31 09:39:22 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#30215