Skip to content

Commit

Permalink
Merge pull request #1653 from cr1mp/patch-1
Browse files Browse the repository at this point in the history
fix potential infinite loop
  • Loading branch information
dansiegel committed Dec 17, 2018
2 parents c33241a + 1c2393a commit 7e18e8a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ private void Initialize()

TargetElement = valueTargetProvider.TargetObject as Element;

if (TargetElement is null)
if (_targetElement is null)
throw new ArgumentNullException(nameof(TargetElement));

Navigation.SetRaiseCanExecuteChangedInternal(TargetElement, RaiseCanExecuteChanged);
Expand Down Expand Up @@ -138,4 +138,4 @@ private IEnumerable<Element> GetBindableStack()
return stack;
}
}
}
}

0 comments on commit 7e18e8a

Please sign in to comment.