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

Handle NPE when grid tool is open and map is removed #4754

Conversation

kwvanderlinde
Copy link
Collaborator

@kwvanderlinde kwvanderlinde commented Apr 12, 2024

Identify the Bug or Feature request

Fixes #4523

Description of the Change

When the Adjust Grid tool is detached from a zone, it first attempts to write out its state to the zone. This doesn't work if the zone is being removed since the zone is likely to be gone by the time the updated is received. So we now check in the message handlers whether the zone is still around before applying the updates.

Possible Drawbacks

Should be none

Documentation Notes

N/A

Release Notes

  • Fixed a bug where leaving the Adjust Grid tool open and switching campaigns would throw an error

This change is Reviewable

@kwvanderlinde kwvanderlinde force-pushed the bugfix/4523-npe-when-adjust-grid-is-open-and-map-disappears branch from d262fe6 to 3edc428 Compare April 12, 2024 20:58
@cwisniew cwisniew added this pull request to the merge queue Apr 16, 2024
Merged via the queue into RPTools:develop with commit 25ab0cd Apr 16, 2024
4 checks passed
@kwvanderlinde kwvanderlinde deleted the bugfix/4523-npe-when-adjust-grid-is-open-and-map-disappears branch April 16, 2024 13:02
@kwvanderlinde kwvanderlinde self-assigned this Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Merged
2 participants