avoid a null ref

This commit is contained in:
2023-04-26 18:22:39 +01:00
parent e2775dedaf
commit 77a16c5551

View File

@ -71,7 +71,7 @@ namespace isnd.Data.Catalog
}
Upper = upper.ToFullString();
Lower = lower.ToFullString();
if (latest != null)
if (latest != null && latest.LatestCommit !=null)
{
CommitId = latest.CommitId;
CommitTimeStamp = latest.LatestCommit.CommitTimeStamp;