mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 11:37:28 +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.
|
||||
// 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]
|
||||
|
Loading…
Reference in New Issue
Block a user