Merge pull request #5953 from peppy/fix-direct-panel-unbind-nullref

Fix potential null reference on DirectPanel unbind
This commit is contained in:
Dean Herbert 2019-09-02 21:35:17 +09:00 committed by GitHub
commit 3443a9517f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,7 +35,7 @@ namespace osu.Game.Overlays.Direct
private BeatmapSetOverlay beatmapSetOverlay;
public PreviewTrack Preview => PlayButton.Preview;
public Bindable<bool> PreviewPlaying => PlayButton.Playing;
public Bindable<bool> PreviewPlaying => PlayButton?.Playing;
protected abstract PlayButton PlayButton { get; }
protected abstract Box PreviewBar { get; }