Browse Source

Project.ExtraProperties["VersionBranchPrefix"] Null check

pull/14121/head
Salih 3 years ago
parent
commit
16b54d6fc3
  1. 4
      modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml.cs

4
modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml.cs

@ -369,9 +369,9 @@ namespace Volo.Docs.Pages.Documents.Project
return version;
}
var prefix = Project.ExtraProperties["VersionBranchPrefix"].ToString();
var prefix = Project.ExtraProperties["VersionBranchPrefix"]?.ToString();
if (string.IsNullOrWhiteSpace(version) || !version.StartsWith(prefix) || version.Length <= prefix.Length)
if (string.IsNullOrWhiteSpace(version) || string.IsNullOrWhiteSpace(prefix) || !version.StartsWith(prefix) || version.Length <= prefix.Length)
{
return version;
}

Loading…
Cancel
Save