Skip to content

Commit

Permalink
Match locator was not initialized
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Stryker <[email protected]>
  • Loading branch information
Rob Stryker committed Feb 13, 2025
1 parent dec12bd commit 86df3dc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
import org.eclipse.jdt.core.search.TypeReferenceMatch;
import org.eclipse.jdt.internal.compiler.classfmt.ClassFileConstants;
import org.eclipse.jdt.internal.compiler.impl.CompilerOptions;
import org.eclipse.jdt.internal.core.JavaProject;
import org.eclipse.jdt.internal.core.LocalVariable;
import org.eclipse.jdt.internal.core.NamedMember;
import org.eclipse.jdt.internal.core.search.matching.MatchLocator;
Expand All @@ -91,7 +92,7 @@ public DOMJavaSearchDelegate() {
@Override
public void locateMatches(MatchLocator locator, IJavaProject javaProject, PossibleMatch[] possibleMatches, int start,
int length) throws CoreException {

locator.initialize((JavaProject)javaProject, length);
for( int i = 0; i < possibleMatches.length; i++ ) {
matchToWrapper.put(possibleMatches[i], wrapNodeSet(possibleMatches[i].nodeSet));
}
Expand Down

0 comments on commit 86df3dc

Please sign in to comment.