diff options
| author | Bond_009 <bond.009@outlook.com> | 2022-11-17 22:23:11 +0100 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2022-12-07 16:44:00 +0100 |
| commit | e21f4adc1694b2c22413576c333a3b9e88ca2b7a (patch) | |
| tree | 3a1d8d3b58790a773afcc2a3c52728f1e34ed57a /Jellyfin.Api/Controllers/SessionController.cs | |
| parent | d35a1f2b943da916454321a2c2e09c00dde82938 (diff) | |
Fix wrong usage of ArgumentNullException.ThrowIfNull
Diffstat (limited to 'Jellyfin.Api/Controllers/SessionController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/SessionController.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/SessionController.cs b/Jellyfin.Api/Controllers/SessionController.cs index 085ac808b..25f930135 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; |
