From 11c5a0b1824f589ce142410812b7ac509968c96a Mon Sep 17 00:00:00 2001 From: Ian Walton Date: Sat, 11 Jun 2022 20:34:29 -0400 Subject: [PATCH] Prevent 400 error when using navigation buttons. Co-authored-by: Claus Vium --- MediaBrowser.Model/Session/GeneralCommand.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MediaBrowser.Model/Session/GeneralCommand.cs b/MediaBrowser.Model/Session/GeneralCommand.cs index 757b19b317..dfbb616aa8 100644 --- a/MediaBrowser.Model/Session/GeneralCommand.cs +++ b/MediaBrowser.Model/Session/GeneralCommand.cs @@ -14,9 +14,9 @@ public class GeneralCommand } [JsonConstructor] - public GeneralCommand(Dictionary arguments) + public GeneralCommand(Dictionary? arguments) { - Arguments = arguments; + Arguments = arguments ?? new Dictionary(); } public GeneralCommandType Name { get; set; }