diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/Controllers/TroubleshootingController.cs b/ConfusedPolarBear.Plugin.IntroSkipper/Controllers/TroubleshootingController.cs index 93be7e1..630a65f 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/Controllers/TroubleshootingController.cs +++ b/ConfusedPolarBear.Plugin.IntroSkipper/Controllers/TroubleshootingController.cs @@ -2,6 +2,7 @@ using System; using System.Net.Mime; using System.Text; using MediaBrowser.Common; +using MediaBrowser.Common.Configuration; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; @@ -42,7 +43,8 @@ public class TroubleshootingController : ControllerBase [Produces(MediaTypeNames.Text.Plain)] public ActionResult GetSupportBundle() { - var config = Plugin.Instance!.Configuration; + ArgumentNullException.ThrowIfNull(Plugin.Instance); + var bundle = new StringBuilder(); bundle.Append("* Jellyfin version: ");