Skip to content

Commit

Permalink
Fix NPE when hovering at the keyword 'void'
Browse files Browse the repository at this point in the history
  • Loading branch information
testforstephen committed Aug 16, 2024
1 parent 80a87f9 commit 9834798
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<IType> indexMatch = new ArrayList<>();
TypeNameMatchRequestor requestor = new TypeNameMatchRequestor() {
@Override
Expand Down

0 comments on commit 9834798

Please sign in to comment.