Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
Fix NRE (#1728)
Browse files Browse the repository at this point in the history
  • Loading branch information
rachelkang authored Nov 24, 2021
1 parent 5719964 commit 08d64b7
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ public SemanticEffectRouter()

protected override void Update(FrameworkElement view, SemanticEffectRouter effect)
{
if (view == null)
return;

var headingLevel = (AutomationHeadingLevel)((int)SemanticEffect.GetHeadingLevel(Element));
AutomationProperties.SetHeadingLevel(view, headingLevel);

Expand Down

0 comments on commit 08d64b7

Please sign in to comment.