[PR #14629] [MERGED] Fix a crash on startup with a folder entry without entries #30165

Closed
opened 2026-01-31 09:39:04 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/14629
Author: @zadjii-msft
Created: 1/4/2023
Status: Merged
Merged: 1/19/2023
Merged by: @undefined

Base: mainHead: dev/migrie/b/14557-clean-branch


📝 Commits (5)

  • c246dc9 this fixes it but this should have a test
  • 33cc584 this fixes the settings tests
  • 60656a2 tests!
  • 29a9c93 Merge remote-tracking branch 'origin/main' into dev/migrie/b/14557-clean-branch
  • 1e9e20b revert the thing

📊 Changes

4 files changed (+118 additions, -0 deletions)

View changed files

src/cascadia/LocalTests_SettingsModel/NewTabMenuTests.cpp (+107 -0)
📝 src/cascadia/LocalTests_SettingsModel/SerializationTests.cpp (+6 -0)
📝 src/cascadia/LocalTests_SettingsModel/SettingsModel.LocalTests.vcxproj (+1 -0)
📝 src/cascadia/TerminalSettingsModel/FolderEntry.cpp (+4 -0)

📄 Description

_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


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/14629 **Author:** [@zadjii-msft](https://github.com/zadjii-msft) **Created:** 1/4/2023 **Status:** ✅ Merged **Merged:** 1/19/2023 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/migrie/b/14557-clean-branch` --- ### 📝 Commits (5) - [`c246dc9`](https://github.com/microsoft/terminal/commit/c246dc9245f05b3dbc495420eb06021f220a31ac) this fixes it but this should have a test - [`33cc584`](https://github.com/microsoft/terminal/commit/33cc58430120e9e89aa933fed8697df95e862014) this fixes the settings tests - [`60656a2`](https://github.com/microsoft/terminal/commit/60656a2a13e98c27163dadcb3f02b5edaaa961a4) tests! - [`29a9c93`](https://github.com/microsoft/terminal/commit/29a9c93b0fc46e0eb399a61b9a8953987c1272ec) Merge remote-tracking branch 'origin/main' into dev/migrie/b/14557-clean-branch - [`1e9e20b`](https://github.com/microsoft/terminal/commit/1e9e20bcedf7da5c114758d2c811ded52d55aa7b) revert the thing ### 📊 Changes **4 files changed** (+118 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `src/cascadia/LocalTests_SettingsModel/NewTabMenuTests.cpp` (+107 -0) 📝 `src/cascadia/LocalTests_SettingsModel/SerializationTests.cpp` (+6 -0) 📝 `src/cascadia/LocalTests_SettingsModel/SettingsModel.LocalTests.vcxproj` (+1 -0) 📝 `src/cascadia/TerminalSettingsModel/FolderEntry.cpp` (+4 -0) </details> ### 📄 Description `_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 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:39:04 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#30165