aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Session
diff options
context:
space:
mode:
authorClaus Vium <cvium@users.noreply.github.com>2022-06-13 09:47:25 +0200
committercrobibero <cody@robibe.ro>2022-06-14 19:30:59 -0400
commit8d1dcb3c05a1d8e31faa18041594b48312551252 (patch)
treeaaa0df95a8ccb4affe963ffb1cfbc01d7819086a /MediaBrowser.Model/Session
parent6702756e7b5271044f4392e0c3ba01a89098c5de (diff)
Merge pull request #7885 from iwalton3/fix-navigation-buttons
Prevent 400 error when using navigation buttons. (cherry picked from commit 8b69b0f5217e7dcda395449a56d59571b264b2a6) Signed-off-by: crobibero <cody@robibe.ro>
Diffstat (limited to 'MediaBrowser.Model/Session')
-rw-r--r--MediaBrowser.Model/Session/GeneralCommand.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/MediaBrowser.Model/Session/GeneralCommand.cs b/MediaBrowser.Model/Session/GeneralCommand.cs
index 757b19b31..dfbb616aa 100644
--- a/MediaBrowser.Model/Session/GeneralCommand.cs
+++ b/MediaBrowser.Model/Session/GeneralCommand.cs
@@ -14,9 +14,9 @@ public class GeneralCommand
}
[JsonConstructor]
- public GeneralCommand(Dictionary<string, string> arguments)
+ public GeneralCommand(Dictionary<string, string>? arguments)
{
- Arguments = arguments;
+ Arguments = arguments ?? new Dictionary<string, string>();
}
public GeneralCommandType Name { get; set; }