Browse Source

Fix failing tests.

Jeremy Koritzinsky 8 years ago
parent
commit
918cd06d2f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Markup/Avalonia.Markup.Xaml/Data/Binding.cs

+ 1 - 1
src/Markup/Avalonia.Markup.Xaml/Data/Binding.cs

@@ -94,7 +94,7 @@ namespace Avalonia.Markup.Xaml.Data
         {
             Contract.Requires<ArgumentNullException>(target != null);
 
-            anchor = anchor ?? DefaultAnchor.Target;
+            anchor = anchor ?? DefaultAnchor?.Target;
 
             var pathInfo = ParsePath(Path);
             ValidateState(pathInfo);