summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.WinRT
diff options
context:
space:
mode:
authorkingces95 <kingces95@users.noreply.github.com>2017-05-04 11:32:21 -0400
committerRui Marinho <me@ruimarinho.net>2017-05-04 16:32:21 +0100
commitb26d9ec0cb5a425ea7cb74646966b2871bd6c1fe (patch)
tree4cb21767edd123e9fdcd54c727d8893d8d4c40d5 /Xamarin.Forms.Platform.WinRT
parent5518d3fbafc6f3911f0b835a92e2cb5dfb925593 (diff)
downloadxamarin-forms-b26d9ec0cb5a425ea7cb74646966b2871bd6c1fe.tar.gz
xamarin-forms-b26d9ec0cb5a425ea7cb74646966b2871bd6c1fe.tar.bz2
xamarin-forms-b26d9ec0cb5a425ea7cb74646966b2871bd6c1fe.zip
fix 54730 (#874)
Diffstat (limited to 'Xamarin.Forms.Platform.WinRT')
-rw-r--r--Xamarin.Forms.Platform.WinRT/LabelRenderer.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Xamarin.Forms.Platform.WinRT/LabelRenderer.cs b/Xamarin.Forms.Platform.WinRT/LabelRenderer.cs
index 1a4b0931..06e537ab 100644
--- a/Xamarin.Forms.Platform.WinRT/LabelRenderer.cs
+++ b/Xamarin.Forms.Platform.WinRT/LabelRenderer.cs
@@ -17,7 +17,7 @@ namespace Xamarin.Forms.Platform.WinRT
{
public static Run ToRun(this Span span)
{
- var run = new Run { Text = span.Text };
+ var run = new Run { Text = span.Text ?? string.Empty };
if (span.ForegroundColor != Color.Default)
run.Foreground = span.ForegroundColor.ToBrush();