We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fbbec5d + 02cb383 commit 2e2a5d6Copy full SHA for 2e2a5d6
csharp/extractor/Semmle.Extraction.CSharp/SymbolExtensions.cs
@@ -625,7 +625,14 @@ public static bool IsSourceDeclaration(this IParameterSymbol parameter)
625
{
626
try
627
628
- return symbol.Accept(new Populators.Symbols(cx));
+ var entity = symbol.Accept(new Populators.Symbols(cx));
629
+ if (entity is null)
630
+ {
631
+ cx.ModelError(symbol, $"Symbol visitor returned null entity on symbol: {symbol}");
632
+ }
633
+#nullable disable warnings
634
+ return entity;
635
+#nullable restore warnings
636
}
637
catch (Exception ex) // lgtm[cs/catch-of-all-exceptions]
638
0 commit comments