updated TestCase and some null checks

This commit is contained in:
Jorolf
2017-04-07 20:32:09 +02:00
parent 6a87fd6112
commit c60a55285c
3 changed files with 8 additions and 8 deletions

View File

@ -34,7 +34,7 @@ namespace osu.Game.Graphics.UserInterface
{
set
{
List<float> values = value.ToList();
List<float> values = value?.ToList() ?? new List<float>();
List<Bar> graphBars = Children.ToList();
for (int i = 0; i < values.Count; i++)
if (graphBars.Count > i)