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

Fix crash on save in rejuv'd Color Schemes page #13902

Merged
3 commits merged into from
Sep 1, 2022

Conversation

carlos-zamora
Copy link
Member

@carlos-zamora carlos-zamora commented Sep 1, 2022

Summary of the Pull Request

Fix a bug where if you pressed the "Save" button, WT would crash. This was caused by adding the possibility that no color scheme is selected in the main page. With no "current scheme", attempting to get its "name" would cause a null ptr exception.

The fix is simple: just check if we actually have a current scheme.
Bonus points: if we don't have a current scheme, don't bother looking throught the color schemes for a match because we'll never find one.

References

#13269 - Color Schemes Rejuv

@carlos-zamora carlos-zamora added the Severity-Blocking We won't ship a release like this! No-siree. label Sep 1, 2022
@carlos-zamora
Copy link
Member Author

FYI @DHowett as the 1.16 release guru

@DHowett
Copy link
Member

DHowett commented Sep 1, 2022

aw frick, i lied to you

Error C2451: a conditional expression of type 'const winrt::hstring' is not valid

check for .empty() >_<

@DHowett
Copy link
Member

DHowett commented Sep 1, 2022

@msftbot merge this in 1 minute

@ghost ghost added the AutoMerge Marked for automatic merge by the bot when requirements are met label Sep 1, 2022
@ghost
Copy link

ghost commented Sep 1, 2022

Hello @DHowett!

Because you've given me some instructions on how to help merge this pull request, I'll be modifying my merge approach. Here's how I understand your requirements for merging this pull request:

  • I won't merge this pull request until after the UTC date Thu, 01 Sep 2022 20:40:28 GMT, which is in 1 minute

If this doesn't seem right to you, you can tell me to cancel these instructions and use the auto-merge policy that has been configured for this repository. Try telling me "forget everything I just told you".

@ghost ghost merged commit 284d045 into main Sep 1, 2022
@ghost ghost deleted the dev/cazamor/cs-rejuv/bugfix-crash-on-save branch September 1, 2022 20:40
@ghost ghost added Area-SettingsUI Anything specific to the SUI Issue-Bug It either shouldn't be doing this or needs an investigation. Product-Terminal The new Windows Terminal. Severity-Crash Crashes are real bad news. labels Sep 2, 2022
@ghost
Copy link

ghost commented Sep 13, 2022

🎉Windows Terminal Preview v1.16.252 has been released which incorporates this pull request.:tada:

Handy links:

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-SettingsUI Anything specific to the SUI AutoMerge Marked for automatic merge by the bot when requirements are met Issue-Bug It either shouldn't be doing this or needs an investigation. Product-Terminal The new Windows Terminal. Severity-Blocking We won't ship a release like this! No-siree. Severity-Crash Crashes are real bad news.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1.16 - Crash in SUI when hot-reloading SUI
3 participants