JS: Fix extractor crash when some parameters have no type annotation

This commit is contained in:
Asger Feldthaus
2020-08-07 11:55:26 +01:00
parent 7f8bf21325
commit 64f58b74f6
5 changed files with 12 additions and 1 deletions

View File

@@ -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;