KT-14353 ClassCastException during offline inspections
#KT-14353 Fixed
This commit is contained in:
+2
@@ -243,6 +243,7 @@ abstract class OperatorReferenceSearcher<TReferenceElement : KtElement>(
|
|||||||
|
|
||||||
if (scope is LocalSearchScope) {
|
if (scope is LocalSearchScope) {
|
||||||
for (element in scope.scope) {
|
for (element in scope.scope) {
|
||||||
|
if (element is KtElement) {
|
||||||
runReadAction {
|
runReadAction {
|
||||||
if (element.isValid) {
|
if (element.isValid) {
|
||||||
val refs = ArrayList<PsiReference>()
|
val refs = ArrayList<PsiReference>()
|
||||||
@@ -262,6 +263,7 @@ abstract class OperatorReferenceSearcher<TReferenceElement : KtElement>(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
scope as GlobalSearchScope
|
scope as GlobalSearchScope
|
||||||
if (wordsToSearch.isNotEmpty()) {
|
if (wordsToSearch.isNotEmpty()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user