We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 867577d commit 0799739Copy full SHA for 0799739
1 file changed
src/MICore/Debugger.cs
@@ -1619,7 +1619,13 @@ private async void PostCommand(string cmd)
1619
1620
private void SendToTransport(string cmd)
1621
{
1622
- ITransport transport = _transport ?? throw new InvalidOperationException();
+ ITransport transport = _transport;
1623
+ if (transport is null)
1624
+ {
1625
+ Debug.Fail("Invalid: `SendToTransport` called before `Init`");
1626
+ throw new InvalidOperationException();
1627
+ }
1628
+
1629
transport.Send(cmd);
1630
1631
// https://github.com/Microsoft/MIEngine/issues/616 :
0 commit comments