[bug](function)fix potential npe in getFunction() when fe restart (#18989)

fix potential npe in getFunction() when fe restart
This commit is contained in:
xy720
2023-05-04 23:45:22 +08:00
committed by GitHub
parent ddd67dba8c
commit 4b85c2738e
2 changed files with 16 additions and 2 deletions

View File

@ -1290,8 +1290,7 @@ public class FunctionSet<T> {
if (f.hasTemplateArg()) {
f = specializeTemplateFunction(f, desc, f.hasVariadicTemplateArg());
}
f = resolveInferenceFunction(f, desc);
if (f != null) {
if (f != null && (f = resolveInferenceFunction(f, desc)) != null) {
inferredFunctions.add(f);
}
}