aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Configuration/ServerConfigurationManager.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-04-29 14:00:21 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-04-29 14:00:21 -0400
commit98e8b73d8158228d023189e2e15916ca7a261b4e (patch)
tree898fec30ca5f9768216191ea5bff39427d4dc867 /MediaBrowser.Server.Implementations/Configuration/ServerConfigurationManager.cs
parent8217bafb2402792acc6a8d4a2348d0370977aa0a (diff)
fixed config save
Diffstat (limited to 'MediaBrowser.Server.Implementations/Configuration/ServerConfigurationManager.cs')
-rw-r--r--MediaBrowser.Server.Implementations/Configuration/ServerConfigurationManager.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/MediaBrowser.Server.Implementations/Configuration/ServerConfigurationManager.cs b/MediaBrowser.Server.Implementations/Configuration/ServerConfigurationManager.cs
index bdc4fcf45..81cf23093 100644
--- a/MediaBrowser.Server.Implementations/Configuration/ServerConfigurationManager.cs
+++ b/MediaBrowser.Server.Implementations/Configuration/ServerConfigurationManager.cs
@@ -84,10 +84,12 @@ namespace MediaBrowser.Server.Implementations.Configuration
{
var newConfig = (ServerConfiguration) newConfiguration;
- if (!string.Equals(Configuration.ItemsByNamePath, newConfig.ItemsByNamePath))
+ var newIbnPath = newConfig.ItemsByNamePath ?? string.Empty;
+
+ if (!string.Equals(Configuration.ItemsByNamePath ?? string.Empty, newIbnPath))
{
// Validate
- if (!Directory.Exists(newConfig.ItemsByNamePath))
+ if (!Directory.Exists(newIbnPath))
{
throw new DirectoryNotFoundException(string.Format("{0} does not exist.", newConfig.ItemsByNamePath));
}