Selaa lähdekoodia

Prevent 400 error when using navigation buttons.

Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
Ian Walton 3 vuotta sitten
vanhempi
sitoutus
11c5a0b182
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  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; }