Skip to content

Commit 3993d06

Browse files
committed
Fix crash when viewing project page
1 parent d4804ad commit 3993d06

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

TeamCoding.Shared/Documents/DocumentPaths.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ public static string GetCorrectCase(string fileOrFolder)
3939
}
4040
private static string GetCorrectCaseInternal(string fileOrFolder)
4141
{ // http://stackoverflow.com/a/29751774
42+
if (string.IsNullOrEmpty(fileOrFolder))
43+
{
44+
return fileOrFolder;
45+
}
4246
string myParentFolder = Path.GetDirectoryName(fileOrFolder);
4347
string myChildName = Path.GetFileName(fileOrFolder);
4448
if (ReferenceEquals(myParentFolder, null))

0 commit comments

Comments
 (0)