mirror of https://github.com/ppy/osu
Merge pull request #10776 from smoogipoo/fix-possible-nullref
Fix possible nullref with non-attached hitobjects
This commit is contained in:
commit
a82291f31f
|
@ -63,7 +63,7 @@ private void load(DrawableHitObject drawableObject)
|
|||
|
||||
public void UpdateProgress(double completionProgress)
|
||||
{
|
||||
if (drawableSlider == null)
|
||||
if (drawableSlider?.HitObject == null)
|
||||
return;
|
||||
|
||||
Slider slider = drawableSlider.HitObject;
|
||||
|
@ -92,7 +92,7 @@ public void UpdateProgress(double completionProgress)
|
|||
|
||||
public void Refresh()
|
||||
{
|
||||
if (drawableSlider == null)
|
||||
if (drawableSlider?.HitObject == null)
|
||||
return;
|
||||
|
||||
// Generate the entire curve
|
||||
|
|
Loading…
Reference in New Issue