Exception in template (Designs\RTC\QueryPublisher/test2.cshtml): System.NullReferenceException: Object reference not set to an instance of an object.
   at CompiledRazorTemplates.Dynamic.cdcddcaadbc.Execute()
   at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context)
   at RazorEngine.Templating.TemplateService.Run(ITemplate template, DynamicViewBag viewBag)
   at RazorEngine.Templating.TemplateService.Parse(String razorTemplate, Object model, DynamicViewBag viewBag, String cacheName)
   at RazorEngine.Razor.Parse[T](String razorTemplate, T model, String cacheName)
   at Dynamicweb.Rendering.Template.RenderRazorTemplate()
@TemplateTags() @foreach (var item in GetLoop("QueryResultItem")) { var branduri = item.GetValue("BrandArray"); var afisare = branduri.ToString(); @afisare.Length <hr /> @* @item.GetValue("Parameter.Name") *@ @item.TemplateTags() <hr /> }