Stops non-url text from being hyperlinks

Fixed crash when you attempted to click one
This commit is contained in:
Imnooby 2018-02-03 18:24:49 -06:00
parent a9148d81d2
commit c4f3223e34

View File

@ -433,7 +433,13 @@ namespace osu.Game.Overlays.Profile
if (string.IsNullOrEmpty(str)) return;
infoTextRight.AddIcon(icon);
infoTextRight.AddLink(" " + str, url);
if (url != null)
{
infoTextRight.AddLink(" " + str, url);
} else
{
infoTextRight.AddText(" " + str);
}
infoTextRight.NewLine();
}