Merge pull request #10724 from nbvdkamp/fix-slider-quickdelete-crash

Fix nullref when quickdeleting slider that hasn't been selected yet
This commit is contained in:
Dean Herbert 2020-11-07 19:31:32 +09:00 committed by GitHub
commit 16f55de495
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,7 +75,7 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders
public override bool HandleQuickDeletion()
{
var hoveredControlPoint = ControlPointVisualiser.Pieces.FirstOrDefault(p => p.IsHovered);
var hoveredControlPoint = ControlPointVisualiser?.Pieces.FirstOrDefault(p => p.IsHovered);
if (hoveredControlPoint == null)
return false;