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

multiselect_controls: Fix crash on selecting a second time #14

Merged
merged 1 commit into from
Aug 11, 2023

Conversation

laurensvalk
Copy link
Contributor

This handles the case where element does not exist. This fixes the crash, but I'm not familiar enough with the code base to know if this might have any side effects.

To reproduce:

  • Select Zelos renderer. It does not appear to happen with other renderers.
  • Select a few blocks with shift key held down.
  • Release shift, then press again to repeat selection.
  • Observe crash:
update-2023-08-11_11.06.21.mp4

This handles the case where `element` does not exist.
@laurensvalk laurensvalk changed the title Fix crash on selecting a second time multiselect_controls: Fix crash on selecting a second time Aug 11, 2023
@HollowMan6
Copy link
Collaborator

This looks perfectly fine to me. (I didn't test with Zelos renderer when I was developing this plugin, not sure if there may exist other issues in addition to this)

cc: @ewpatton

Copy link
Member

@ewpatton ewpatton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ewpatton ewpatton merged commit dfc29ee into mit-cml:main Aug 11, 2023
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.

3 participants