mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-06-03 05:34:16 -04:00
Update Emby.Server.Implementations/AppBase/ConfigurationHelper.cs
Co-authored-by: BaronGreenback <jimcartlidge@yahoo.co.uk>
This commit is contained in:
parent
95ebb9a55a
commit
24ac5cc353
@ -36,8 +36,7 @@ namespace Emby.Server.Implementations.AppBase
|
|||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
var instanceConfiguration = Activator.CreateInstance(type);
|
configuration = Activator.CreateInstance(type) ?? throw new ResourceNotFoundException(nameof(type));
|
||||||
configuration = instanceConfiguration ?? throw new ResourceNotFoundException(nameof(instanceConfiguration));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
using var stream = new MemoryStream(buffer?.Length ?? 0);
|
using var stream = new MemoryStream(buffer?.Length ?? 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user