mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
JS: Fix extractor crash when some parameters have no type annotation
This commit is contained in:
@@ -622,7 +622,9 @@ public class ScopeManager {
|
||||
nd.getReturnType().accept(this, c);
|
||||
}
|
||||
for (ITypeExpression paramType : nd.getParameterTypes()) {
|
||||
paramType.accept(this, c);
|
||||
if (paramType != null) {
|
||||
paramType.accept(this, c);
|
||||
}
|
||||
}
|
||||
// note: `infer` types may not occur in type parameter bounds.
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user