Skip to content

Commit d23efd2

Browse files
committed
Fix exception when FrameEvaluate contains an empty list
1 parent 2b7e360 commit d23efd2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Common/src/main/kotlin/gay/object/hexdebug/debugger/HexDebugger.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,8 @@ class HexDebugger(
355355

356356
private fun isAtBreakpoint(): Boolean {
357357
val nextIota = when (val frame = nextFrame) {
358-
is FrameEvaluate -> getIotas(frame)?.car
358+
// why is this empty sometimes??????
359+
is FrameEvaluate -> getIotas(frame)?.firstOrNull()
359360
is FrameBreakpoint -> return true
360361
else -> null
361362
} ?: return false

0 commit comments

Comments
 (0)