mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-16 17:23:38 -05:00
Fix null ref creating Agent Job with no description (#659)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user