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))); }