mirror of
https://github.com/ppy/osu.git
synced 2025-03-17 22:17:25 +08:00
Guard against empty values early
This commit is contained in:
parent
e9ffeb8b5d
commit
bb5aa9a9c9
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user