1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 02:02:53 +08:00

Add extra level of nullabiliy checking because NRT is not present

This commit is contained in:
Dean Herbert 2023-01-11 17:38:08 +09:00
parent b1a13286a3
commit 2dcc61caf5

View File

@ -24,7 +24,7 @@ namespace osu.Game.Overlays.Profile.Header.Components
{
Clear(true);
if (user.NewValue != null)
if (user.NewValue?.Groups != null)
AddRange(user.NewValue.Groups.Select(g => new GroupBadge(g)));
});
}