Skip to content

Commit 58a5e27

Browse files
committed
Initialize _outputBuffer to avoid null ref
1 parent e81e57c commit 58a5e27

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Terminal.Gui/ConsoleDrivers/WindowsDriver/WindowsDriver.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,11 @@ internal class WindowsDriver : ConsoleDriver
3636

3737
private WindowsConsole.ButtonState? _lastMouseButtonPressed;
3838
private WindowsMainLoop? _mainLoopDriver;
39-
private WindowsConsole.ExtendedCharInfo [] _outputBuffer;
39+
private WindowsConsole.ExtendedCharInfo [] _outputBuffer = new WindowsConsole.ExtendedCharInfo [0 * 0];
4040
private Point? _point;
4141
private Point _pointMove;
4242
private bool _processButtonClick;
4343

44-
// BUGBUG: Fix this nullable issue.
4544
public WindowsDriver ()
4645
{
4746
if (Environment.OSVersion.Platform == PlatformID.Win32NT)

0 commit comments

Comments
 (0)