Error executing funtion! Function name: AMMenu
System.NullReferenceException: Object reference not set to an instance of an object.
at MyFunctionNamespace.MyFunctionClass.GetMenuTreeHTML(HttpContext ctx, W5HtmlWriter html, W5FunctionRenderer functionRenderer, W5DocumentRenderer documentRenderer, W5FastMenu menu, Int32 maxLevel, Boolean showAll)
at MyFunctionNamespace.MyFunctionClass.GetMenuHTML(HttpContext ctx, W5DocumentRenderer documentRenderer, W5FunctionRenderer functionRenderer, W5FunctionLocation location)
at MyFunctionNamespace.MyFunctionClass.FireFunction(HttpContext ctx, W5VirtualTemplateRenderer virtualTemplateRenderer, W5DocumentRenderer documentRenderer, W5FunctionRenderer functionRenderer, W5FunctionLocation functionLocation)
at W5View.W5ViewDocument.BuildHTML(W5DocumentTemplateContentRenderer contentRenderer, W5HtmlWriter html, String height, String width, String templateClientID, Boolean even, Boolean loadRenderers, String& metaKeywords, String& functionHeaders)


