Skip to content

Commit ff15420

Browse files
committed
fix: crash when tag's %(creatordata) returns empty string (#1705)
Signed-off-by: leo <[email protected]>
1 parent 4e555f9 commit ff15420

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Commands/QueryTags.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@ public QueryTags(string repo)
4040
IsAnnotated = subs[1].Equals("tag", StringComparison.Ordinal),
4141
SHA = string.IsNullOrEmpty(subs[3]) ? subs[2] : subs[3],
4242
Creator = Models.User.FindOrAdd(subs[4]),
43-
CreatorDate = ulong.Parse(subs[5]),
43+
CreatorDate = string.IsNullOrEmpty(subs[5]) ? 0 : ulong.Parse(subs[5]),
4444
Message = message,
4545
});
4646
}
4747

4848
return tags;
4949
}
5050

51-
private string _boundary = string.Empty;
51+
private readonly string _boundary;
5252
}
5353
}

0 commit comments

Comments
 (0)