From d1ab4e1ce8b77a6df1d9981db69eff156ee945a6 Mon Sep 17 00:00:00 2001 From: Christian Schwarz Date: Fri, 27 May 2016 13:58:21 +0200 Subject: [Xaml] Fix MarkupExtension not found in default namespace (#183) * [Xaml] Fix MarkupExtension not found in default namespace * Fixed indentation * Added XamlC unit test --- Xamarin.Forms.Xaml/XamlServiceProvider.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Xamarin.Forms.Xaml') diff --git a/Xamarin.Forms.Xaml/XamlServiceProvider.cs b/Xamarin.Forms.Xaml/XamlServiceProvider.cs index 8998e6f5..77ed6345 100644 --- a/Xamarin.Forms.Xaml/XamlServiceProvider.cs +++ b/Xamarin.Forms.Xaml/XamlServiceProvider.cs @@ -235,7 +235,7 @@ namespace Xamarin.Forms.Xaml.Internals xmlLineInfo = lineInfoProvider.XmlLineInfo; } - var namespaceuri = string.IsNullOrEmpty(prefix) ? "" : namespaceResolver.LookupNamespace(prefix); + var namespaceuri = prefix == null ? "" : namespaceResolver.LookupNamespace(prefix); if (namespaceuri == null) { exception = new XamlParseException(string.Format("No xmlns declaration for prefix \"{0}\"", prefix), xmlLineInfo); -- cgit v1.2.3