mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 22:56:36 +09:00
Guard against empty values early
This commit is contained in:
@ -26,8 +26,10 @@ namespace osu.Game.Overlays.Profile.Sections.Historical
|
||||
get => values;
|
||||
set
|
||||
{
|
||||
values = value;
|
||||
graph.Values = values;
|
||||
if (value.Length == 0)
|
||||
throw new ArgumentException("At least one value expected!", nameof(value));
|
||||
|
||||
graph.Values = values = value;
|
||||
|
||||
createRowTicks();
|
||||
createColumnTicks();
|
||||
|
Reference in New Issue
Block a user