diff --git a/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/DOMCodeSelector.java b/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/DOMCodeSelector.java index 1c9e17449bb..c527f5f30d4 100644 --- a/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/DOMCodeSelector.java +++ b/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/DOMCodeSelector.java @@ -605,6 +605,9 @@ private static boolean matchSignatures(IMethodBinding invocation, IMethodBinding } private IJavaElement[] findTypeInIndex(String packageName, String simpleName) throws JavaModelException { + if (simpleName == null) { + return new IJavaElement[0]; + } List indexMatch = new ArrayList<>(); TypeNameMatchRequestor requestor = new TypeNameMatchRequestor() { @Override