Initialize _outputBuffer to avoid null ref

This commit is contained in:
tznind
2024-11-27 20:45:31 +00:00
parent e81e57c0c8
commit 58a5e27536

View File

@@ -36,12 +36,11 @@ internal class WindowsDriver : ConsoleDriver
private WindowsConsole.ButtonState? _lastMouseButtonPressed;
private WindowsMainLoop? _mainLoopDriver;
private WindowsConsole.ExtendedCharInfo [] _outputBuffer;
private WindowsConsole.ExtendedCharInfo [] _outputBuffer = new WindowsConsole.ExtendedCharInfo [0 * 0];
private Point? _point;
private Point _pointMove;
private bool _processButtonClick;
// BUGBUG: Fix this nullable issue.
public WindowsDriver ()
{
if (Environment.OSVersion.Platform == PlatformID.Win32NT)