Skip to content

Commit

Permalink
Merge pull request #436 from StefanMaron/development
Browse files Browse the repository at this point in the history
Resolve System.NullReferenceException in LC0044
  • Loading branch information
Arthurvdv authored Dec 14, 2023
2 parents e42f2af + 6aec6ae commit f336962
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Design/Rule0044AnalyzeTransferField.cs
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,8 @@ public void PopulateFields(IApplicationObjectTypeSymbol table)

public void PopulateFields(FieldExtensionListSyntax fieldList)
{
if (fieldList == null) return;

foreach (FieldSyntax field in fieldList.Fields.Where(fld => fld.IsKind(SyntaxKind.Field)))
{
if (!FieldIsObsolete(field))
Expand All @@ -727,6 +729,7 @@ public void PopulateFields(FieldExtensionListSyntax fieldList)

public void PopulateFields(FieldListSyntax fieldList)
{
if (fieldList == null) return;

foreach (FieldSyntax field in fieldList.Fields)
{
Expand Down

0 comments on commit f336962

Please sign in to comment.