Check if the stackFrame we use is valid (EA-120312)

Unfortunately, the 'isValid' is a private field in StackFrameImpl so we have to catch an exception with an empty catch block.
This commit is contained in:
Yan Zhulanow
2018-07-02 15:25:43 +03:00
parent cf3550b139
commit 2203615085
@@ -171,6 +171,8 @@ class KotlinCodeFragmentFactory : CodeFragmentFactory() {
frameInfo = FrameInfo(frame?.thisObject(), visibleVariables)
} catch (ignored: AbsentInformationException) {
// Debug info unavailable
} catch (ignored: InvalidStackFrameException) {
// Thread is resumed, the frame we have is not valid anymore
} finally {
semaphore.up()
}