Explorar o código

update search css loading

Luke Pulverenti %!s(int64=9) %!d(string=hai) anos
pai
achega
3dd60b6ee0
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      MediaBrowser.Api/Library/LibraryHelpers.cs

+ 5 - 0
MediaBrowser.Api/Library/LibraryHelpers.cs

@@ -56,6 +56,11 @@ namespace MediaBrowser.Api.Library
         /// <param name="appPaths">The app paths.</param>
         public static void AddMediaPath(IFileSystem fileSystem, string virtualFolderName, string path, IServerApplicationPaths appPaths)
         {
+            if (!string.IsNullOrWhiteSpace(path))
+            {
+                throw new ArgumentNullException("path");
+            }
+
 			if (!fileSystem.DirectoryExists(path))
             {
                 throw new DirectoryNotFoundException("The path does not exist.");