one more missing read action in find usages (EA-72578 - assert: SharedImplUtil.getParent)

This commit is contained in:
Dmitry Jemerov
2015-09-11 15:26:13 +02:00
parent 3770e7f49f
commit 299df05a74
@@ -81,7 +81,7 @@ public class KotlinReferencesSearcher : QueryExecutorBase<PsiReference, Referenc
val resultProcessor = MyRequestResultProcessor(unwrappedElement, filter = refFilter, options = kotlinOptions)
if (kotlinOptions.anyEnabled()) {
val name = unwrappedElement.name
val name = runReadAction { unwrappedElement.name }
if (name != null) {
queryParameters.optimizer.searchWord(name, effectiveSearchScope, UsageSearchContext.IN_CODE, true, unwrappedElement,
resultProcessor)