From 3e98bc2e5259ca6a81094d473a16b6d4899a7235 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 22 Apr 2017 21:37:23 -0400 Subject: [PATCH] don't parse null strings as md --- Project-Unite/ACL.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Project-Unite/ACL.cs b/Project-Unite/ACL.cs index eb8cf72..6764a20 100644 --- a/Project-Unite/ACL.cs +++ b/Project-Unite/ACL.cs @@ -121,6 +121,8 @@ public static string ResolveUserLinksInMarkdown(string mkdn) public static IHtmlString Markdown(this HtmlHelper hpr, string md) { + if (md == null) + return hpr.Raw(""); md = ResolveUserLinksInMarkdown(md); return hpr.Raw(CommonMark.CommonMarkConverter.Convert(hpr.Encode(md))); }