aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/IO/Shortcut.cs
diff options
context:
space:
mode:
authorebr11 Eric Reed spam <ebr11 Eric Reed spam@reedsplace.com>2012-09-17 16:24:01 -0400
committerebr11 Eric Reed spam <ebr11 Eric Reed spam@reedsplace.com>2012-09-17 16:24:01 -0400
commitf385fe2f201c6727b04acb4b8b57f2b9fc086dd4 (patch)
tree39e0870bd19769d31d5330944145fecc48118c22 /MediaBrowser.Controller/IO/Shortcut.cs
parentfe427bc7f4f1a709c43c8ecb035b07325ed710b9 (diff)
parent946c0e8256d61d5084efdd2196eef455fa13b89b (diff)
Merge with default
Diffstat (limited to 'MediaBrowser.Controller/IO/Shortcut.cs')
-rw-r--r--MediaBrowser.Controller/IO/Shortcut.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/MediaBrowser.Controller/IO/Shortcut.cs b/MediaBrowser.Controller/IO/Shortcut.cs
index 683f44573..e9ea21f17 100644
--- a/MediaBrowser.Controller/IO/Shortcut.cs
+++ b/MediaBrowser.Controller/IO/Shortcut.cs
@@ -179,7 +179,7 @@ namespace MediaBrowser.Controller.IO
public static bool IsShortcut(string filename)
{
- return Path.GetExtension(filename).EndsWith("lnk", StringComparison.OrdinalIgnoreCase);
+ return filename != null ? Path.GetExtension(filename).EndsWith("lnk", StringComparison.OrdinalIgnoreCase) : false;
}
}
}