Skip to content

Commit

Permalink
Handle null version
Browse files Browse the repository at this point in the history
  • Loading branch information
dansiegel committed Jun 29, 2021
1 parent 9af683d commit de7ee12
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ protected string GetBuildNumber()

protected string SanitizeVersion(string version)
{
if (string.IsNullOrEmpty(version))
return "1.0";

try
{
var parts = version.Split('.');
Expand Down

0 comments on commit de7ee12

Please sign in to comment.