1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 07:33:20 +08:00

Guard again potential nulls in RealmNamedFileUsage

Hopefully help in figuring out https://sentry.ppy.sh/organizations/ppy/issues/3679/?project=2&query=user%3A%22id%3A10078484%22
This commit is contained in:
Dean Herbert 2022-06-30 15:40:44 +09:00
parent 78d86fd3ff
commit 356c0501ec

View File

@ -1,6 +1,7 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using JetBrains.Annotations;
using osu.Framework.Testing;
using osu.Game.Database;
@ -19,8 +20,8 @@ namespace osu.Game.Models
public RealmNamedFileUsage(RealmFile file, string filename)
{
File = file;
Filename = filename;
File = file ?? throw new ArgumentNullException(nameof(file));
Filename = filename ?? throw new ArgumentNullException(nameof(filename));
}
[UsedImplicitly]