mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-23 09:14:45 +03:00
Fix nullability errors in Jellyfin.Api (part 1)
This commit is contained in:
@@ -103,6 +103,11 @@ namespace Jellyfin.Api.Controllers
|
||||
|
||||
if (validatePathDto.ValidateWritable)
|
||||
{
|
||||
if (validatePathDto.Path == null)
|
||||
{
|
||||
throw new NullReferenceException(nameof(validatePathDto.Path));
|
||||
}
|
||||
|
||||
var file = Path.Combine(validatePathDto.Path, Guid.NewGuid().ToString());
|
||||
try
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user