Skip to content

Commit

Permalink
Fix NRE thrown when version property is missing
Browse files Browse the repository at this point in the history
Fixes #250
  • Loading branch information
AArnott committed Nov 26, 2018
1 parent 13cf1df commit d712dff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NerdBank.GitVersioning/VersionOracle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public VersionOracle(string projectDirectory, LibGit2Sharp.Repository repo, LibG

this.VersionHeightOffset = this.VersionOptions?.BuildNumberOffsetOrDefault ?? 0;

this.PrereleaseVersion = this.ReplaceMacros(this.VersionOptions?.Version.Prerelease ?? string.Empty);
this.PrereleaseVersion = this.ReplaceMacros(this.VersionOptions?.Version?.Prerelease ?? string.Empty);

this.CloudBuildNumberOptions = this.VersionOptions?.CloudBuild?.BuildNumberOrDefault ?? VersionOptions.CloudBuildNumberOptions.DefaultInstance;

Expand Down

0 comments on commit d712dff

Please sign in to comment.