Skip to content

Commit

Permalink
Merge pull request #104 from peppy/fix-attrib-lookup-crash
Browse files Browse the repository at this point in the history
Fix crash on looking up databased attributes when none are present
  • Loading branch information
smoogipoo authored Nov 28, 2022
2 parents 473833b + c718034 commit d06dd31
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public static async Task<BeatmapStore> CreateAsync(MySqlConnection? connection,
}, transaction: transaction)).ToArray();
}

if (rawDifficultyAttributes == null)
if (rawDifficultyAttributes == null || rawDifficultyAttributes.Length == 0)
return null;

DifficultyAttributes difficultyAttributes = LegacyRulesetHelper.CreateDifficultyAttributes(ruleset.RulesetInfo.OnlineID);
Expand Down

0 comments on commit d06dd31

Please sign in to comment.