Browse Source

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>
Claus Vium 3 năm trước cách đây
mục cha
commit
8d1dcb3c05
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      MediaBrowser.Model/Session/GeneralCommand.cs

+ 2 - 2
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; }