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

Call finalizeCellEditing() before switching tokenTypes to make sure t… #4865

Merged
merged 1 commit into from
Jul 23, 2024

Conversation

maltedreschert
Copy link
Contributor

@maltedreschert maltedreschert commented Jul 22, 2024

Identify the Bug or Feature request

fixes #4650

Description of the Change

When switching to another token type, the underlying table data changes. The TableCellEditor is tied to a specific cell though and if it is not closed before changing the underlying data, that can cause data loss and/or NullReferenceExceptions.
The solution is to use the finalizeCellEditing method to close and apply the data before switching the table data.

Possible Drawbacks

No drawbacks known

Release Notes

  • fix crash when trying to switch token types while editing the data of a token.

This change is Reviewable

…hat all cell editings are applied before switching the token tables.

fixes RPTools#4650
@cwisniew cwisniew added the bug label Jul 23, 2024
@cwisniew cwisniew added this pull request to the merge queue Jul 23, 2024
Merged via the queue into RPTools:develop with commit 41a6d5f Jul 23, 2024
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Java Exception when Editing Campaign Token Properties
2 participants