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 a crash on startup with a folder entry without entries #14629

Merged
5 commits merged into from
Jan 19, 2023

Conversation

zadjii-msft
Copy link
Member

@zadjii-msft zadjii-msft commented Jan 4, 2023

_Entries was getting default constructed to nullptr. We should be careful about that.

Adds a test too, and fixes a regression in the local tests introduced in #13763.

Closes #14557

@ghost ghost added Area-CodeHealth Issues related to code cleanliness, linting, rules, warnings, errors, static analysis, etc. Area-Settings Issues related to settings and customizability, for console or terminal 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. labels Jan 4, 2023
@zadjii-msft zadjii-msft added this to the Terminal v1.17 milestone Jan 10, 2023
@carlos-zamora
Copy link
Member

If having an empty folder is invalid, shouldn't we throw a serialization error or warning?

Copy link
Member

@DHowett DHowett left a comment

Choose a reason for hiding this comment

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

(only not signing off because of the GetValueForKey<T> thing)

@ghost ghost added the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Jan 13, 2023
carlos-zamora added a commit that referenced this pull request Jan 14, 2023
@ghost ghost removed the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Jan 18, 2023
@zadjii-msft
Copy link
Member Author

shouldn't we throw a serialization error or warning

A warning might be nice, sure, but it's not well hooked up for that right now, and we do need the crash fix NOW. I feel like this is one of those "you aint gonna fix it" things.

@DHowett DHowett added the AutoMerge Marked for automatic merge by the bot when requirements are met label Jan 18, 2023
@ghost
Copy link

ghost commented Jan 18, 2023

Hello @DHowett!

Because this pull request has the AutoMerge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@ghost ghost merged commit 90485e4 into main Jan 19, 2023
@ghost ghost deleted the dev/migrie/b/14557-clean-branch branch January 19, 2023 19:12
@ghost
Copy link

ghost commented Jan 24, 2023

🎉Windows Terminal Preview v1.17.1023 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-CodeHealth Issues related to code cleanliness, linting, rules, warnings, errors, static analysis, etc. Area-Settings Issues related to settings and customizability, for console or terminal 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.

Empty "folder" entry in "newTabMenu" causes WT to be unable to start
3 participants