I render an itemlist using this one. But it got an error on the site
Error executing template "Designs/app/master/navigationDesignHeader.cshtml"
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at Dynamicweb.Content.ParagraphPermissionService.GetPermissionForUser(User user, Int32 paragraphId, Permissions permissions, PagePermissionLevels level, Boolean includeEveryone)
at Dynamicweb.Content.ParagraphPermissionService.GetPermissionForUser(User user, Paragraph permissionObject, PagePermissionLevels level)
at Dynamicweb.Content.ContentPermissionHelper.HasAccess[T](T permissionObject, PagePermissionLevels pagePermissionLevel)
at Dynamicweb.Content.ContentPermissionHelper.HasAccessToParagraph(Paragraph paragraph, PermissionLevel permission)
at Dynamicweb.Content.Items.Queries.Repository.GetParagraphs(Boolean checkPermissions, List`1 effectiveItemTypes, List`1 allPages)
at Dynamicweb.Content.Items.Queries.Repository.SelectByParentPageIds(IEnumerable`1 parentIds, Query query, Boolean includeParagraphs, Boolean includeChildItems, Boolean checkPermissions, Boolean includeInheritedItems)
at Dynamicweb.ItemPublisher.Frontend.GetItems()
at Dynamicweb.ItemPublisher.Frontend.List()
at Dynamicweb.ItemPublisher.Frontend.GetContent()
at Dynamicweb.ItemPublisher.Frontend.GetContentBySettings(String settings)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Dynamicweb.Extensibility.AddIns.AddInManager.InvokeFunction(Object instance, String functionName, Object[] arguments)
at Dynamicweb.Rendering.TemplateBase`1.RenderItemList(Object settings)
at CompiledRazorTemplates.Dynamic.RazorEngine_f861bf78d785410b9341382a555468a5.<>c__DisplayClass2_0.<RenderNewsItems>b__0(TextWriter __razor_helper_writer) in C:\local\app\Files\Templates\Designs\app\master\navigationDesignHeader.cshtml:line 121
at CompiledRazorTemplates.Dynamic.RazorEngine_f861bf78d785410b9341382a555468a5.<>c__DisplayClass0_0.<RenderNodes>b__0(TextWriter __razor_helper_writer) in C:\local\app\Files\Templates\Designs\app\master\navigationDesignHeader.cshtml:line 19
at CompiledRazorTemplates.Dynamic.RazorEngine_f861bf78d785410b9341382a555468a5.Execute() in C:\local\app\Files\Templates\Designs\app\master\navigationDesignHeader.cshtml:line 4
at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context, TextWriter reader)
at RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass16_0.<RunCompile>b__0(TextWriter writer)
at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
at Dynamicweb.Rendering.RazorTemplateRenderingProvider.Render(Template template)
at Dynamicweb.Rendering.TemplateRenderingService.Render(Template template)
at Dynamicweb.Rendering.Template.RenderRazorTemplate()