From 3dd60b6ee05985ce0fbac6ed510aa6eacb974b09 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Wed, 2 Dec 2015 15:50:25 -0500 Subject: [PATCH] update search css loading --- MediaBrowser.Api/Library/LibraryHelpers.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/MediaBrowser.Api/Library/LibraryHelpers.cs b/MediaBrowser.Api/Library/LibraryHelpers.cs index 111922bcad..2e0afa4116 100644 --- a/MediaBrowser.Api/Library/LibraryHelpers.cs +++ b/MediaBrowser.Api/Library/LibraryHelpers.cs @@ -56,6 +56,11 @@ namespace MediaBrowser.Api.Library /// The app paths. 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.");