Skip to content

Commit 4454618

Browse files
committed
Check for null Description Property in the returned help content
1 parent 8e3a0cd commit 4454618

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Engine/ScriptAnalyzer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -580,11 +580,11 @@ private List<ExternalRule> GetExternalRule(string[] moduleNames)
580580

581581
if ((null != helpContent) && ( 1 == helpContent.Count))
582582
{
583-
dynamic description = helpContent[0].Properties["Description"].Value;
583+
dynamic description = helpContent[0].Properties["Description"];
584584

585585
if (null != description)
586586
{
587-
desc = description[0].Text;
587+
desc = description.Value[0].Text;
588588
}
589589
}
590590

0 commit comments

Comments
 (0)