Fix null ref creating Agent Job with no description (#659)

This commit is contained in:
Karl Burtram
2018-07-17 18:03:59 -07:00
committed by GitHub
parent ec9d51ede1
commit a6721bfae5

View File

@@ -1155,7 +1155,7 @@ namespace Microsoft.SqlTools.ServiceLayer.Agent
job.Category = this.category.SmoCategory.Name;
}
if (creating || this.description != job.Description)
if (!string.IsNullOrWhiteSpace(this.description) && (creating || this.description != job.Description))
{
job.Description = this.description;
}