From 0d316279ec8504bbd1849625ba019ef952c2da9a Mon Sep 17 00:00:00 2001 From: Troy Stanger Date: Wed, 7 Nov 2018 10:41:29 -0600 Subject: [PATCH] Fix incorrect style when AddUrl is passed null --- Ooui/Style.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Ooui/Style.cs b/Ooui/Style.cs index 3460e22..1d41705 100644 --- a/Ooui/Style.cs +++ b/Ooui/Style.cs @@ -432,6 +432,8 @@ namespace Ooui } static string AddUrl(object val) { + if (val == null) + return null; return String.Format("url('{0}')", val); }