Softly handle errors when no beatmap file exists in archive

This commit is contained in:
smoogipoo
2018-08-24 17:57:39 +09:00
parent 27c151db8f
commit 99574ecad8
2 changed files with 4 additions and 4 deletions

View File

@ -178,7 +178,8 @@ namespace osu.Game.Database
{
try
{
return Import(CreateModel(archive), archive);
var model = CreateModel(archive);
return model == null ? null : Import(model, archive);
}
catch (Exception e)
{