mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-05-24 02:02:29 -04:00
Added Check for arguments
This commit is contained in:
parent
d073e2c664
commit
b744ceabaa
@ -1724,6 +1724,12 @@ public sealed class BaseItemRepository(
|
||||
|
||||
private BaseItemDto DeserialiseBaseItem(BaseItemEntity baseItemEntity, bool skipDeserialization = false)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(baseItemEntity, nameof(baseItemEntity));
|
||||
if (serverConfigurationManager?.Configuration is null)
|
||||
{
|
||||
throw new InvalidOperationException("Server Configuration manager or configuration is null");
|
||||
}
|
||||
|
||||
var typeToSerialise = GetType(baseItemEntity.Type);
|
||||
return BaseItemRepository.DeserialiseBaseItem(
|
||||
baseItemEntity,
|
||||
|
Loading…
x
Reference in New Issue
Block a user