NPE fix in StackFrameInterceptor
This commit is contained in:
+3
-1
@@ -18,7 +18,9 @@ import org.jetbrains.kotlin.idea.debugger.coroutine.proxy.ContinuationHolder
|
|||||||
|
|
||||||
class CoroutineStackFrameInterceptor(val project: Project) : StackFrameInterceptor {
|
class CoroutineStackFrameInterceptor(val project: Project) : StackFrameInterceptor {
|
||||||
override fun createStackFrame(frame: StackFrameProxyImpl, debugProcess: DebugProcessImpl, location: Location): XStackFrame? =
|
override fun createStackFrame(frame: StackFrameProxyImpl, debugProcess: DebugProcessImpl, location: Location): XStackFrame? =
|
||||||
if (AsyncStacksToggleAction.isAsyncStacksEnabled(debugProcess.xdebugProcess?.session as XDebugSessionImpl))
|
if (debugProcess.xdebugProcess?.session is XDebugSessionImpl &&
|
||||||
|
AsyncStacksToggleAction.isAsyncStacksEnabled(debugProcess.xdebugProcess?.session as XDebugSessionImpl)
|
||||||
|
)
|
||||||
ContinuationHolder.coroutineExitFrame(frame, debugProcess.debuggerContext.suspendContext as SuspendContextImpl)
|
ContinuationHolder.coroutineExitFrame(frame, debugProcess.debuggerContext.suspendContext as SuspendContextImpl)
|
||||||
else
|
else
|
||||||
null
|
null
|
||||||
|
|||||||
Reference in New Issue
Block a user