add missing read action (EA-72578)

This commit is contained in:
Dmitry Jemerov
2015-09-03 12:57:05 +02:00
parent ebce992f20
commit 9bd68f458f
@@ -62,8 +62,10 @@ public class KotlinReferencesSearcher : QueryExecutorBase<PsiReference, Referenc
val unwrappedElement = element.namedUnwrappedElement ?: return
val classNameForCompanionObject = unwrappedElement.getClassNameForCompanionObject()
val words = unwrappedElement.getSpecialNamesToSearch() +
(if (classNameForCompanionObject != null) listOf(classNameForCompanionObject) else emptyList())
val words = runReadAction {
unwrappedElement.getSpecialNamesToSearch() +
(if (classNameForCompanionObject != null) listOf(classNameForCompanionObject) else emptyList())
}
val effectiveSearchScope = runReadAction { queryParameters.effectiveSearchScope }