Skip to content

Commit

Permalink
codeSelect to send empty array instead of array containing null
Browse files Browse the repository at this point in the history
  • Loading branch information
mickaelistria committed Feb 23, 2024
1 parent b67e3ba commit 5c492d3
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,10 @@ public IJavaElement[] codeSelect(int offset, int length, WorkingCopyOwner workin
ASTNode node = finder.getCoveredNode() != null ? finder.getCoveredNode() : finder.getCoveringNode();
IBinding binding = resolveBinding(node);
if (binding != null) {
return new IJavaElement[] { binding.getJavaElement() };
IJavaElement element = binding.getJavaElement();
if (element != null) {
return new IJavaElement[] { element };
}
}
return new IJavaElement[0];
} else {
Expand Down

0 comments on commit 5c492d3

Please sign in to comment.