Skip to content

Conversation

@Nuklon
Copy link
Collaborator

@Nuklon Nuklon commented Jun 27, 2025

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 behavior?

Under some cases, a NullReferenceException can be thrown by SplitButton:

Description: The process was terminated due to an unhandled exception.
Exception Info: System.NullReferenceException: Object reference not set to an instance of an object.
   at Wpf.Ui.Controls.SplitButton.ReleaseTemplateResources()
   at Wpf.Ui.Controls.SplitButton.<>c.<.ctor>b__14_0(Object sender, RoutedEventArgs _)

What is the new behavior?

Checks if type is non-null.

@Nuklon Nuklon requested a review from pomianowski as a code owner June 27, 2025 14:53
@github-actions github-actions bot added controls Changes to the appearance or logic of custom controls. PR Pull request dotnet release labels Jun 27, 2025
@github-actions github-actions bot added the ⭐ top pull request Top pull request. label Jul 30, 2025
@github-actions github-actions bot removed the ⭐ top pull request Top pull request. label Aug 6, 2025
@pomianowski pomianowski changed the title Fix NullReferenceException fix: NullReferenceException in SplitButton Oct 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

controls Changes to the appearance or logic of custom controls. dotnet PR Pull request release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants