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

[MM-60201] Fixed a potential crash on removing server #3152

Merged
merged 1 commit into from
Sep 23, 2024
Merged

Conversation

devinbinnie
Copy link
Member

Summary

Wasn't able to reproduce the exact crash, other than this possible case where it's possible that the current server ID isn't set before the menu regenerates, causing a crash where the app menu might be re-rendered before the last server is removed. This PR just reverses those statements so that it's less likely that the currentServerId isn't set.

Ticket Link

Closes #3122
https://mattermost.atlassian.net/browse/MM-60201

Fix a potential crash where the app menu might regenerate when `currentServerId` isn't set.

@devinbinnie devinbinnie added the 2: Dev Review Requires review by a core committer label Sep 20, 2024
@devinbinnie devinbinnie added this to the v5.10.0 milestone Sep 20, 2024
Copy link
Contributor

@pvev pvev left a comment

Choose a reason for hiding this comment

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

LGTM! Good catch 🚀 , thanks @devinbinnie

@pvev pvev removed the 2: Dev Review Requires review by a core committer label Sep 23, 2024
@devinbinnie devinbinnie added the 4: Reviews Complete All reviewers have approved the pull request label Sep 23, 2024
@devinbinnie devinbinnie merged commit c6b68a8 into master Sep 23, 2024
29 checks passed
@devinbinnie devinbinnie deleted the MM-60201 branch September 23, 2024 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4: Reviews Complete All reviewers have approved the pull request release-note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Handelable exception thrown as runtime error. (Server selection)
4 participants