WPF Terminal Control crashes when set to a null Connection #19602

Closed
opened 2026-01-31 06:48:28 +00:00 by claunia · 0 comments
Owner

Originally created by @mitchcapper on GitHub (Mar 29, 2023).

Windows Terminal version

n/a

Windows build number

10.0.19044

Other Software

WPF / .net control

Steps to reproduce

The Microsoft.Terminal.Wpf.TerminalControl instance has a ITerminalConnection Connection interface that relates the backend connection. While this starts as null, once it is set to not null setting it back to null throws an UE. In fact probably just setting it to null when already null would do the same as the setter control tries to access the TerminalOutput function on the value.

Expected Behavior

not to fault just to clear the old connection.

Actual Behavior

unhandled exception

will submit PR to fix.

Originally created by @mitchcapper on GitHub (Mar 29, 2023). ### Windows Terminal version n/a ### Windows build number 10.0.19044 ### Other Software WPF / .net control ### Steps to reproduce The `Microsoft.Terminal.Wpf.TerminalControl` instance has a `ITerminalConnection Connection` interface that relates the backend connection. While this starts as null, once it is set to not null setting it back to null throws an UE. In fact probably just setting it to null when already null would do the same as the setter control tries to access the TerminalOutput function on the value. ### Expected Behavior not to fault just to clear the old connection. ### Actual Behavior unhandled exception will submit PR to fix.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#19602