mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Prevent System.NullReferenceException.
This commit is contained in:
@@ -848,7 +848,7 @@ namespace Terminal.Gui {
|
||||
|
||||
void CheckAndResizeMarksIfRequired ()
|
||||
{
|
||||
if (count != src.Count) {
|
||||
if (src != null && count != src.Count) {
|
||||
count = src.Count;
|
||||
BitArray newMarks = new BitArray (count);
|
||||
for (var i = 0; i < Math.Min (marks.Length, newMarks.Length); i++) {
|
||||
|
||||
Reference in New Issue
Block a user