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

Ensure MacroEditorDialog.callback is not null #4239

Conversation

kwvanderlinde
Copy link
Collaborator

@kwvanderlinde kwvanderlinde commented Aug 10, 2023

Identify the Bug or Feature request

Fixes #4238

Description of the Change

The field MacroEditorDialog.callback was null for macro button dialogs, but this case was not checked prior to invoking the callback when canceling. Rather than adding a null check in the cancel case, I instead opted to use no-op callbacks instead of null, removing the need for any null checks on the callback.

Possible Drawbacks

None

Documentation Notes

N/A

Release Notes

N/A


This change is Reviewable

@cwisniew cwisniew added this pull request to the merge queue Aug 14, 2023
Merged via the queue into RPTools:develop with commit 2229ec5 Aug 14, 2023
@kwvanderlinde kwvanderlinde deleted the bugfix/4238-npe-MacroEditorDialog-cancel branch August 14, 2023 06:53
@cwisniew cwisniew added the bug label Aug 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Merged
Development

Successfully merging this pull request may close these issues.

[Bug]: 1.14.0a3 NPE on macro editor close
2 participants