mirror of
https://github.com/actions/runner.git
synced 2025-12-10 20:36:49 +00:00
Fix null ref in 'OnEventWritten()' (#3593)
This commit is contained in:
@@ -629,7 +629,7 @@ namespace GitHub.Runner.Common
|
||||
payload[0] = Enum.Parse(typeof(GitHub.Services.Common.VssCredentialsType), ((int)payload[0]).ToString());
|
||||
}
|
||||
|
||||
if (payload.Length > 0)
|
||||
if (payload.Length > 0 && !string.IsNullOrEmpty(eventData.Message))
|
||||
{
|
||||
message = String.Format(eventData.Message.Replace("%n", Environment.NewLine), payload);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user