Skip to content

Commit

Permalink
Resolve NullReferenceException
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthurvdv committed Feb 15, 2024
1 parent 9f9ac46 commit b58ebed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Design/Rule0039ArgumentDifferentTypeThenExpected.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ private void AnalyzeTableReferencePageProvider(SymbolAnalysisContext ctx)
IPropertySymbol pageReference = table.GetProperty(propertyKind);
if (pageReference == null) continue;
IPageTypeSymbol page = (IPageTypeSymbol)pageReference.Value;
if (page == null) continue;
ITableTypeSymbol pageSourceTable = page.RelatedTable;
if (pageSourceTable == null) continue;

Expand Down

0 comments on commit b58ebed

Please sign in to comment.