mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 01:43:15 +08:00
Fix potential nullref caused by test data.
This commit is contained in:
parent
51950eef43
commit
68a359698d
@ -88,7 +88,7 @@ namespace osu.Game.Database
|
||||
return ID == other?.ID;
|
||||
}
|
||||
|
||||
public bool AudioEquals(BeatmapInfo other) => other != null &&
|
||||
public bool AudioEquals(BeatmapInfo other) => other != null && BeatmapSet != null && other.BeatmapSet != null &&
|
||||
BeatmapSet.Path == other.BeatmapSet.Path &&
|
||||
(Metadata ?? BeatmapSet.Metadata).AudioFile == (other.Metadata ?? other.BeatmapSet.Metadata).AudioFile;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user