Forráskód Böngészése

Merge pull request #1069 from Bond-009/fix

Quick nullref fix
Vasily 6 éve
szülő
commit
fcee64df09
1 módosított fájl, 6 hozzáadás és 5 törlés
  1. 6 5
      MediaBrowser.Controller/Entities/BaseItem.cs

+ 6 - 5
MediaBrowser.Controller/Entities/BaseItem.cs

@@ -36,6 +36,12 @@ namespace MediaBrowser.Controller.Entities
     /// </summary>
     public abstract class BaseItem : IHasProviderIds, IHasLookupInfo<ItemLookupInfo>
     {
+        /// <summary>
+        /// The supported image extensions
+        /// </summary>
+        public static readonly IReadOnlyList<string> SupportedImageExtensions
+            = new [] { ".png", ".jpg", ".jpeg", ".tbn", ".gif" };
+
         private static readonly List<string> _supportedExtensions = new List<string>(SupportedImageExtensions)
         {
             ".nfo",
@@ -69,11 +75,6 @@ namespace MediaBrowser.Controller.Entities
         public static readonly char[] SlugReplaceChars = { '?', '/', '&' };
         public static char SlugChar = '-';
 
-        /// <summary>
-        /// The supported image extensions
-        /// </summary>
-        public static readonly string[] SupportedImageExtensions = { ".png", ".jpg", ".jpeg", ".tbn", ".gif" };
-
         /// <summary>
         /// The trailer folder name
         /// </summary>