Jelajahi Sumber

Prevent 400 error when using navigation buttons.

Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
Ian Walton 3 tahun lalu
induk
melakukan
11c5a0b182
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  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; }