aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Entities/User.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-12-29 09:12:29 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-12-29 09:12:29 -0500
commit3488cfecbd54eaaf917d853664f68cac84d472e9 (patch)
treea3f05e3f05e0441ae775b544d1b983a93ea49887 /MediaBrowser.Controller/Entities/User.cs
parente19766b1b7e4735e18ebb0e997579f7671cc267c (diff)
make lazy loaded paths more nimble
Diffstat (limited to 'MediaBrowser.Controller/Entities/User.cs')
-rw-r--r--MediaBrowser.Controller/Entities/User.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Entities/User.cs b/MediaBrowser.Controller/Entities/User.cs
index 06f50e552..a2c7bcb57 100644
--- a/MediaBrowser.Controller/Entities/User.cs
+++ b/MediaBrowser.Controller/Entities/User.cs
@@ -58,6 +58,7 @@ namespace MediaBrowser.Controller.Entities
/// Gets or sets the path.
/// </summary>
/// <value>The path.</value>
+ [IgnoreDataMember]
public override string Path
{
get
@@ -267,6 +268,11 @@ namespace MediaBrowser.Controller.Entities
/// <returns>System.String.</returns>
private string GetConfigurationDirectoryPath(string username)
{
+ if (string.IsNullOrEmpty(username))
+ {
+ throw new ArgumentNullException("username");
+ }
+
var safeFolderName = FileSystem.GetValidFilename(username);
return System.IO.Path.Combine(ConfigurationManager.ApplicationPaths.UserConfigurationDirectoryPath, safeFolderName);