1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 10:43:04 +08:00

Fix NRE when hit object blueprint is not implemented

This commit is contained in:
ekrctb 2021-06-22 10:05:03 +09:00
parent 6c3d2315d0
commit a9c7830252

View File

@ -256,7 +256,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
if (drawable == null) if (drawable == null)
return null; return null;
return CreateHitObjectBlueprintFor(item).With(b => b.DrawableObject = drawable); return CreateHitObjectBlueprintFor(item)?.With(b => b.DrawableObject = drawable);
} }
public virtual HitObjectSelectionBlueprint CreateHitObjectBlueprintFor(HitObject hitObject) => null; public virtual HitObjectSelectionBlueprint CreateHitObjectBlueprintFor(HitObject hitObject) => null;