瀏覽代碼

Prevent 400 error when using navigation buttons.

Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
Ian Walton 3 年之前
父節點
當前提交
11c5a0b182
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      MediaBrowser.Model/Session/GeneralCommand.cs

+ 2 - 2
MediaBrowser.Model/Session/GeneralCommand.cs

@@ -14,9 +14,9 @@ public class GeneralCommand
     }
     }
 
 
     [JsonConstructor]
     [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; }
     public GeneralCommandType Name { get; set; }