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

This commit is contained in:
2021-05-14 19:02:59 +03:00
parent 14e6f8a317
commit 9dc7b18b0b
3 changed files with 33 additions and 33 deletions
+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 // You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below: // by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.91")] [assembly: AssemblyVersion("1.0.92")]
[assembly: AssemblyFileVersion("1.0.91")] [assembly: AssemblyFileVersion("1.0.92")]
[assembly: AssemblyInformationalVersion("1.0.91")] [assembly: AssemblyInformationalVersion("1.0.92")]
@@ -184,7 +184,7 @@ namespace JiraTimeBot.RepositoryProviders
bool directBranchHasBeenFound = false; bool directBranchHasBeenFound = false;
foreach (var branch in repo.Branches) foreach (var branch in repo.Branches)
{ {
if (branch.Tip.Sha != commitSha) if (branch.Tip?.Sha != commitSha)
{ {
continue; continue;
} }