mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 00:09:55 +09:00
Add fallback case for GetDisplayString
if called on a null reference
This commit is contained in:
@ -54,7 +54,7 @@ namespace osu.Game.Extensions
|
||||
}
|
||||
|
||||
// fallback in case none of the above happens to match.
|
||||
result ??= model.ToString();
|
||||
result ??= model?.ToString() ?? @"null";
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user