mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 15:16:38 +09:00
Fix null reference in some tests due to missing realm context factory
This commit is contained in:
@ -43,7 +43,11 @@ namespace osu.Game.Skinning
|
||||
|
||||
protected Skin(SkinInfo skin, IStorageResourceProvider resources, [CanBeNull] Stream configurationStream = null)
|
||||
{
|
||||
SkinInfo = skin.ToLive(resources.RealmContextFactory);
|
||||
SkinInfo = resources?.RealmContextFactory != null
|
||||
? skin.ToLive(resources.RealmContextFactory)
|
||||
// This path should only be used in some tests.
|
||||
: skin.ToLiveUnmanaged();
|
||||
|
||||
this.resources = resources;
|
||||
|
||||
configurationStream ??= getConfigurationStream();
|
||||
|
Reference in New Issue
Block a user