From a4cb95e2db86a717e4b0da5f0afeebcc9941fe57 Mon Sep 17 00:00:00 2001 From: vfedosevich Date: Tue, 3 Mar 2015 07:01:01 -0800 Subject: [PATCH] webdav portal fix --- .../Views/FileSystem/_ShowContentTopMenu.cshtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Views/FileSystem/_ShowContentTopMenu.cshtml b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Views/FileSystem/_ShowContentTopMenu.cshtml index 0a31a28c..496ac682 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Views/FileSystem/_ShowContentTopMenu.cshtml +++ b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Views/FileSystem/_ShowContentTopMenu.cshtml @@ -10,7 +10,7 @@ @if (Model != null) { string header = WspContext.User.OrganizationId; - string[] elements = Model.UrlSuffix.Split(new[] { "/" }, StringSplitOptions.RemoveEmptyEntries); + string[] elements = string.IsNullOrEmpty(Model.UrlSuffix)? new string[0]: Model.UrlSuffix.Split(new[] { "/" }, StringSplitOptions.RemoveEmptyEntries);