소스 검색

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]
-    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; }