[PR #13644] Fix a crash on settings reload #29682

Open
opened 2026-01-31 09:36:17 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/13644

State: closed
Merged: Yes


07d58a8 contains a regression where the settings' Themes() property is
accessed without checking whether it's a nullptr. This can happen because
the invalid settings modal is shown with a empty settings model object.

This commit fixes the issue by deferring the update of _settings until
after we ensured that the _settings object is valid (besides warnings).

Closes #13543

Validation Steps Performed

  • Replace any string value with 123
  • Application doesn't crash
**Original Pull Request:** https://github.com/microsoft/terminal/pull/13644 **State:** closed **Merged:** Yes --- 07d58a8 contains a regression where the settings' `Themes()` property is accessed without checking whether it's a `nullptr`. This can happen because the invalid settings modal is shown with a empty settings model object. This commit fixes the issue by deferring the update of `_settings` until after we ensured that the `_settings` object is valid (besides warnings). Closes #13543 ## Validation Steps Performed * Replace any string value with `123` * Application doesn't crash ✅
claunia added the pull-request label 2026-01-31 09:36:17 +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#29682