1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 00:52:57 +08:00

Fix possible nullref on blueprint removal

This commit is contained in:
smoogipoo 2020-01-16 12:00:36 +09:00
parent 5f178b7755
commit 9535b3eeba

View File

@ -208,7 +208,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
private void removeBlueprintFor(HitObject hitObject)
{
var blueprint = selectionBlueprints.Single(m => m.DrawableObject.HitObject == hitObject);
var blueprint = selectionBlueprints.SingleOrDefault(m => m.DrawableObject.HitObject == hitObject);
if (blueprint == null)
return;