mirror of
https://github.com/ppy/osu.git
synced 2025-01-19 12:22:57 +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:
parent
78d86fd3ff
commit
356c0501ec
@ -1,6 +1,7 @@
|
|||||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
// 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.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
|
using System;
|
||||||
using JetBrains.Annotations;
|
using JetBrains.Annotations;
|
||||||
using osu.Framework.Testing;
|
using osu.Framework.Testing;
|
||||||
using osu.Game.Database;
|
using osu.Game.Database;
|
||||||
@ -19,8 +20,8 @@ namespace osu.Game.Models
|
|||||||
|
|
||||||
public RealmNamedFileUsage(RealmFile file, string filename)
|
public RealmNamedFileUsage(RealmFile file, string filename)
|
||||||
{
|
{
|
||||||
File = file;
|
File = file ?? throw new ArgumentNullException(nameof(file));
|
||||||
Filename = filename;
|
Filename = filename ?? throw new ArgumentNullException(nameof(filename));
|
||||||
}
|
}
|
||||||
|
|
||||||
[UsedImplicitly]
|
[UsedImplicitly]
|
||||||
|
Loading…
Reference in New Issue
Block a user