mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 07:33:55 +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)
|
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;
|
this.resources = resources;
|
||||||
|
|
||||||
configurationStream ??= getConfigurationStream();
|
configurationStream ??= getConfigurationStream();
|
||||||
|
Reference in New Issue
Block a user