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

Commit

Permalink
Update VisualElementExtension.shared.cs (#961)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkoshevoi committed Feb 22, 2021
1 parent 0a7f032 commit 206a94e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public static void AbortAnimations(this VisualElement element, params string[] o

result = null;
parent = null;
while (element.Parent != null)
while (element?.Parent != null)
{
if (!(element.Parent is T parentElement))
{
Expand Down

0 comments on commit 206a94e

Please sign in to comment.