Browse Source

Fix possible null ref exception

Bond-009 4 years ago
parent
commit
066c19a26b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Emby.Server.Implementations/Library/LibraryManager.cs

+ 1 - 1
Emby.Server.Implementations/Library/LibraryManager.cs

@@ -208,7 +208,7 @@ namespace Emby.Server.Implementations.Library
         /// Gets or sets the list of entity resolution ignore rules.
         /// </summary>
         /// <value>The entity resolution ignore rules.</value>
-        private IResolverIgnoreRule[] EntityResolutionIgnoreRules { get; set; }
+        private IResolverIgnoreRule[] EntityResolutionIgnoreRules { get; set; } = Array.Empty<IResolverIgnoreRule>();
 
         /// <summary>
         /// Gets or sets the list of currently registered entity resolvers.