mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-16 18:47:57 -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;
|
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;
|
job.Description = this.description;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user