1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 09:03:22 +08:00

Fix potential nullref in unrelated test

This commit is contained in:
Dean Herbert 2019-11-12 21:27:15 +09:00
parent 58df6930b2
commit 61464c5c89

View File

@ -19,7 +19,7 @@ namespace osu.Game.Online.API.Requests
public SearchBeatmapSetsRequest(string query, RulesetInfo ruleset, BeatmapSearchCategory searchCategory = BeatmapSearchCategory.Any, DirectSortCriteria sortCriteria = DirectSortCriteria.Ranked, SortDirection direction = SortDirection.Descending)
{
this.query = System.Uri.EscapeDataString(query);
this.query = string.IsNullOrEmpty(query) ? string.Empty : System.Uri.EscapeDataString(query);
this.ruleset = ruleset;
this.searchCategory = searchCategory;
this.sortCriteria = sortCriteria;