diff --git a/osu.Game/Database/ArchiveModelManager.cs b/osu.Game/Database/ArchiveModelManager.cs
index 2a329cd5b4..41e141129d 100644
--- a/osu.Game/Database/ArchiveModelManager.cs
+++ b/osu.Game/Database/ArchiveModelManager.cs
@@ -160,7 +160,8 @@ namespace osu.Game.Database
lock (imported)
{
- imported.Add(model);
+ if (model != null)
+ imported.Add(model);
current++;
notification.Text = $"Imported {current} of {paths.Length} {HumanisedModelName}s";
@@ -243,7 +244,7 @@ namespace osu.Game.Database
///
/// The archive to be imported.
/// An optional cancellation token.
- public Task Import(ArchiveReader archive, CancellationToken cancellationToken = default)
+ public async Task Import(ArchiveReader archive, CancellationToken cancellationToken = default)
{
cancellationToken.ThrowIfCancellationRequested();
@@ -267,7 +268,7 @@ namespace osu.Game.Database
return null;
}
- return Import(model, archive, cancellationToken);
+ return await Import(model, archive, cancellationToken);
}
///