Add missing read action in debugger (EA-120163)

This commit is contained in:
Yan Zhulanow
2018-05-23 21:48:19 +03:00
parent 93d668ad63
commit d08dcb9f0f
@@ -199,7 +199,7 @@ class DebuggerClassNameProvider(
if (typeForAnonymousClass == null) {
val parentText = runReadAction { getRelevantElement(element.parent)?.text } ?: "<parent was null>"
LOG.error("Can not get type for ${element.text}, parent: $parentText")
LOG.error("Can not get type for ${runReadAction { element.text }}, parent: $parentText")
classNamesOfContainingDeclaration
} else {
classNamesOfContainingDeclaration + ComputedClassNames.Cached(typeForAnonymousClass.internalName.toJdiName())