Skip to content

Fix truncated battles on attempted thread stop#85

Open
jkflying wants to merge 1 commit into
robo-code:mainfrom
jkflying:patch-1
Open

Fix truncated battles on attempted thread stop#85
jkflying wants to merge 1 commit into
robo-code:mainfrom
jkflying:patch-1

Conversation

@jkflying
Copy link
Copy Markdown
Contributor

I found an issue with the new security manager. If the thread stop fails there is a NPE which ends up aborting the battle early. This causes battles to be reported with their results, but the wrong number of rounds.

The fix is to take a reference to the thread beforehand so that we don't throw the NPE when the forceStop() sets it to null.

@jkflying jkflying marked this pull request as draft May 16, 2026 21:21
@jkflying jkflying marked this pull request as ready for review May 16, 2026 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant