Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix: "internal error" message shown when trying to step from a state with multiple target edges #77

Open
wants to merge 1 commit into
base: debt-24-demo-materials
Choose a base branch
from

Conversation

karoliineh
Copy link
Member

When setting a breakpoint to the paper demo on line 21, and starting the debugger, stepping results in an "internal error". This is caused by targetEdge getting a null value, after which targetEdge.nodeId() is called, causing a NullPointerException. Without this proposed fix, the debugger will show a notification box with "Internal error" but will recover and step forward once a stepping button is pushed again.

The bug is probably caused by the fix from #74, where now the return statement return targetEdgesByCFGNode.size() == 1 ? targetEdgesByCFGNode.get(0) : null; of function findTargetEdge is reached (previously an exception was always thrown), and thus, the targetEdge in stepAllThreadsIntoMatchingEdge can get a null value.

@karoliineh karoliineh added the bug Something isn't working label Oct 31, 2024
@karoliineh karoliineh changed the title Bugfix: Bugfix: "internal error" when trying to step from a state with multiple target edges Oct 31, 2024
@karoliineh karoliineh changed the title Bugfix: "internal error" when trying to step from a state with multiple target edges Bugfix: "internal error" message shown when trying to step from a state with multiple target edges Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant