allow container to be null/empty (#266)

This commit is contained in:
eric sciple
2020-01-12 23:02:36 -05:00
committed by GitHub
parent a9c58d7398
commit a727194742
2 changed files with 19 additions and 2 deletions

View File

@@ -154,6 +154,11 @@ namespace GitHub.DistributedTask.Pipelines.ObjectTemplating
if (value is StringToken containerLiteral)
{
if (String.IsNullOrEmpty(containerLiteral.Value))
{
return null;
}
result.Image = containerLiteral.Value;
}
else