Skip to content

Commit

Permalink
Add null check for temperature thresholds to config library
Browse files Browse the repository at this point in the history
This somehow escaped my series of config verification improvements a few commits ago.
  • Loading branch information
Sparronator9999 committed Dec 20, 2024
1 parent 18b0f35 commit 4ee7948
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions YAMDCC.Config/YAMDCC_Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,14 @@ private bool IsValid()
{
return false;
}

for (int k = 0; k < curveCfg.TempThresholds.Length; k++)
{
if (curveCfg.TempThresholds[k] is null)
{
return false;
}
}
}
}

Expand Down

0 comments on commit 4ee7948

Please sign in to comment.