diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-04-29 14:00:21 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-04-29 14:00:21 -0400 |
| commit | 98e8b73d8158228d023189e2e15916ca7a261b4e (patch) | |
| tree | 898fec30ca5f9768216191ea5bff39427d4dc867 /MediaBrowser.Server.Implementations/Configuration/ServerConfigurationManager.cs | |
| parent | 8217bafb2402792acc6a8d4a2348d0370977aa0a (diff) | |
fixed config save
Diffstat (limited to 'MediaBrowser.Server.Implementations/Configuration/ServerConfigurationManager.cs')
| -rw-r--r-- | MediaBrowser.Server.Implementations/Configuration/ServerConfigurationManager.cs | 6 |
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)); } |
