Skip to content

Commit

Permalink
Prevent round ranking exception if S_PointsRepartition is empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Raszka committed Oct 8, 2024
1 parent a227c97 commit 4df9fbc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public async Task LoadPointsRepartitionFromSettingsAsync()
var modeScriptSettings = await matchSettingsService.GetCurrentScriptSettingsAsync();
var pointsRepartitionString = (string?)modeScriptSettings?[PointsRepartition.ModeScriptSetting];

if (pointsRepartitionString != null)
if (pointsRepartitionString != null && pointsRepartitionString.Trim().Length > 0)
{
_pointsRepartition.Update(pointsRepartitionString);
}
Expand Down

0 comments on commit 4df9fbc

Please sign in to comment.