Browse Source

Fix escSeqRequests that may be null running unit tests.

BDisp 9 months ago
parent
commit
81eb301b56
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Terminal.Gui/ConsoleDrivers/EscSeqUtils/EscSeqUtils.cs

+ 1 - 1
Terminal.Gui/ConsoleDrivers/EscSeqUtils/EscSeqUtils.cs

@@ -364,7 +364,7 @@ public static class EscSeqUtils
                     else
                     {
                         // It's request response that wasn't handled by a valid request terminator
-                        System.Diagnostics.Debug.Assert (escSeqRequests is { Statuses.Count: > 0 });
+                        System.Diagnostics.Debug.Assert (escSeqRequests is null or { Statuses.Count: > 0 });
 
                         InvalidRequestTerminator = ToString (cki);
                     }