Исправление NRE

This commit is contained in:
monster committed 2021-05-14 19:02:59 +03:00
1 parent 14e6f8a317
commit 9dc7b18b0b
3 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -1 +1 @@
1.0.91
1.0.92
+3 -3
View File
@@ -26,6 +26,6 @@ using System.Runtime.InteropServices;
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.91")]
[assembly: AssemblyFileVersion("1.0.91")]
[assembly: AssemblyInformationalVersion("1.0.91")]
[assembly: AssemblyVersion("1.0.92")]
[assembly: AssemblyFileVersion("1.0.92")]
[assembly: AssemblyInformationalVersion("1.0.92")]
@@ -184,7 +184,7 @@ namespace JiraTimeBot.RepositoryProviders
bool directBranchHasBeenFound = false;
foreach (var branch in repo.Branches)
{
if (branch.Tip.Sha != commitSha)
if (branch.Tip?.Sha != commitSha)
{
continue;
}