summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Xaml/CreateValuesVisitor.cs
diff options
context:
space:
mode:
authorStephane Delcroix <stephane@delcroix.org>2016-04-12 18:46:39 +0200
committerJason Smith <jason.smith@xamarin.com>2016-04-12 09:46:39 -0700
commitc92297047c01112fd4a6e7695a40acb274fdf7a7 (patch)
tree413ce7f7a6d0507ff55ac237365924f55c49b345 /Xamarin.Forms.Xaml/CreateValuesVisitor.cs
parentf975a6f2e3552c3309c8e10f15998be664d06882 (diff)
downloadxamarin-forms-c92297047c01112fd4a6e7695a40acb274fdf7a7.tar.gz
xamarin-forms-c92297047c01112fd4a6e7695a40acb274fdf7a7.tar.bz2
xamarin-forms-c92297047c01112fd4a6e7695a40acb274fdf7a7.zip
[X] internal CreateFromXaml () (#77)
Diffstat (limited to 'Xamarin.Forms.Xaml/CreateValuesVisitor.cs')
-rw-r--r--Xamarin.Forms.Xaml/CreateValuesVisitor.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Xamarin.Forms.Xaml/CreateValuesVisitor.cs b/Xamarin.Forms.Xaml/CreateValuesVisitor.cs
index 96af9189..d54a36d5 100644
--- a/Xamarin.Forms.Xaml/CreateValuesVisitor.cs
+++ b/Xamarin.Forms.Xaml/CreateValuesVisitor.cs
@@ -66,7 +66,7 @@ namespace Xamarin.Forms.Xaml
return;
XamlParseException xpe;
- var type = XamlParser.GetElementType(node.XmlType, node, Context.RootElement.GetType().GetTypeInfo().Assembly,
+ var type = XamlParser.GetElementType(node.XmlType, node, Context.RootElement?.GetType().GetTypeInfo().Assembly,
out xpe);
if (xpe != null)
throw xpe;