Skip to content

Commit b8f9a92

Browse files
committed
Upgrade
1 parent 2ecd1d0 commit b8f9a92

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/NosCore.PathFinder.Tests/TestHelper.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,10 @@ public static void VerifyFile(string linearPathfinderPng, Image<Rgba32> image, L
6060
}
6161
}
6262

63-
_font ??= SystemFonts.Collection.Families.FirstOrDefault()?.CreateFont(16);
63+
if (_font == null && SystemFonts.Collection.Families.Any())
64+
{
65+
_font = SystemFonts.Collection.Families.First().CreateFont(16);
66+
}
6467
}
6568
return _font;
6669
}

0 commit comments

Comments
 (0)