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)
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;