Skip to content

The Free Software Media System - Server Backend & API

Fix wrong usage of ArgumentNullException.ThrowIfNull

Bond_009e21f4adc1694
diff --git a/Jellyfin.Api/Controllers/SessionController.cs b/Jellyfin.Api/Controllers/SessionController.cs
index 085ac808b4..25f9301351 100644
--- a/Jellyfin.Api/Controllers/SessionController.cs
+++ b/Jellyfin.Api/Controllers/SessionController.cs
@@ -294,7 +294,7 @@ namespace Jellyfin.Api.Controllers
{
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;