diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/CPPSemantics.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/CPPSemantics.java index 65206c1d7aa..c84ee84c4b6 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/CPPSemantics.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/CPPSemantics.java @@ -2352,9 +2352,9 @@ public class CPPSemantics { } public static IBinding resolveFunction(LookupData data, ICPPFunction[] fns, boolean allowUDC) throws DOMException { - fns= ArrayUtil.trim(ICPPFunction.class, fns); - if (fns == null || fns.length == 0) + if (fns == null || fns.length == 0 || fns[0] == null) return null; + fns= ArrayUtil.trim(fns); sortAstBeforeIndex(fns);