Skip to content

Commit

Permalink
Merge pull request #527 from StefanMaron/development
Browse files Browse the repository at this point in the history
Resolve InvalidCastException on LC0039
  • Loading branch information
Arthurvdv authored Jan 30, 2024
2 parents 8daea77 + 12a1c69 commit 8937d2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Design/Rule0039ArgumentDifferentTypeThenExpected.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ private void AnalyzeSetRecordArgument(OperationAnalysisContext ctx)
.Where(x => x.Type.GetNavTypeKindSafe() == NavTypeKind.Page)
.SingleOrDefault();
if (pageReference == null) return;
IVariableSymbol variableSymbol = (IVariableSymbol)pageReference.GetSymbol().OriginalDefinition;
ISymbol variableSymbol = pageReference.GetSymbol().OriginalDefinition;
IPageTypeSymbol pageTypeSymbol = (IPageTypeSymbol)variableSymbol.GetTypeSymbol().OriginalDefinition;
if (pageTypeSymbol.RelatedTable == null)
{
Expand Down

0 comments on commit 8937d2a

Please sign in to comment.