null checks

This commit is contained in:
Clint Rutkas 2020-11-18 11:47:24 -08:00
parent 4c853a8f45
commit 98a8129f93

View File

@ -48,6 +48,16 @@ namespace FancyZonesEditor
public void CalcAdjacentZones(int index, int size, List<RowColInfo> info, Func<int, bool> indexCmpr)
{
if (info == null)
{
throw new ArgumentNullException(nameof(info));
}
if (indexCmpr == null)
{
throw new ArgumentNullException(nameof(indexCmpr));
}
int ind = index;
while (ind > 0 && indexCmpr(ind))
{