Skip to content

fix(app): Add null check for Application.Current#1684

Merged
pomianowski merged 1 commit intolepoco:mainfrom
Nuklon:patch-44
Apr 17, 2026
Merged

fix(app): Add null check for Application.Current#1684
pomianowski merged 1 commit intolepoco:mainfrom
Nuklon:patch-44

Conversation

@Nuklon
Copy link
Copy Markdown
Collaborator

@Nuklon Nuklon commented Apr 8, 2026

Add null check for Application.Current before changing resources.

Pull request type

Please check the type of change your PR introduces:

  • Update
  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes

What is the current/new behavior?

ResourceDictionary can throw NullReferenceException when setting resources on shutdown. Guard against this.

Add null check for Application.Current before changing resources.
@Nuklon Nuklon requested a review from pomianowski as a code owner April 8, 2026 17:16
@github-actions github-actions Bot added themes Topic is related to managing themes PR Pull request dotnet release labels Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dotnet PR Pull request release themes Topic is related to managing themes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants