Skip to content

Commit 0173a13

Browse files
committed
When setting a breakpoint to the paper demo on line 21, stepping results in an "internal error"
1 parent 83b2565 commit 0173a13

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/main/java/abstractdebugging/AbstractDebuggingServer.java

+5-3
Original file line numberDiff line numberDiff line change
@@ -811,9 +811,11 @@ private void stepAllThreadsIntoMatchingEdge(int primaryThreadId, EdgeInfo primar
811811
for (var step : steps) {
812812
ThreadState thread = step.getLeft();
813813
EdgeInfo targetEdge = step.getRight();
814-
NodeInfo targetNode = resultsService.lookupNode(targetEdge.nodeId());
815-
boolean isNewThread = targetEdge instanceof FunctionCallEdgeInfo fce && fce.createsNewThread();
816-
thread.pushFrame(new StackFrameState(targetNode, false, thread.getCurrentFrame().getLocalThreadIndex() - (isNewThread ? 1 : 0)));
814+
if (targetEdge != null) {
815+
NodeInfo targetNode = resultsService.lookupNode(targetEdge.nodeId());
816+
boolean isNewThread = targetEdge instanceof FunctionCallEdgeInfo fce && fce.createsNewThread();
817+
thread.pushFrame(new StackFrameState(targetNode, false, thread.getCurrentFrame().getLocalThreadIndex() - (isNewThread ? 1 : 0)));
818+
}
817819
}
818820

819821
onThreadsStopped("step", primaryThreadId);

0 commit comments

Comments
 (0)