Missed one of the if statements

This commit is contained in:
agrath
2011-10-16 09:25:20 -13:00
parent 79f4925faf
commit ad0c67365f

View File

@@ -221,7 +221,7 @@ namespace umbraco.MacroEngines.Library
public HtmlTagWrapper Wrap(string tag, object inner, object anonymousAttributes)
{
string innerText = null;
if (inner.GetType() != typeof(DynamicNull) && inner != null)
if (inner != null && inner.GetType() != typeof(DynamicNull))
{
innerText = string.Format("{0}", inner);
}