mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-03 12:23:27 +02:00
Fix wrong usage of ArgumentNullException.ThrowIfNull
This commit is contained in:
parent
d35a1f2b94
commit
e21f4adc16
|
@ -294,7 +294,7 @@ namespace Jellyfin.Api.Controllers
|
||||||
{
|
{
|
||||||
var currentSession = await RequestHelpers.GetSession(_sessionManager, _userManager, HttpContext).ConfigureAwait(false);
|
var currentSession = await RequestHelpers.GetSession(_sessionManager, _userManager, HttpContext).ConfigureAwait(false);
|
||||||
|
|
||||||
ArgumentNullException.ThrowIfNull(command, "Request body may not be null");
|
ArgumentNullException.ThrowIfNull(command);
|
||||||
|
|
||||||
command.ControllingUserId = currentSession.UserId;
|
command.ControllingUserId = currentSession.UserId;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue