An error occurred while attaching module (Dynamicweb.Frontend.Content)

System.NullReferenceException: Object reference not set to an instance of an object.
   at System.Object.GetType()
   at Dynamicweb.UserManagement.Frontend.Renderer.Properties(Object obj)
   at Dynamicweb.UserManagement.Frontend.Renderer.RenderProperties(Object obj, Template template, String elementName, Boolean forEdit, IDictionary`2 errors, Boolean allowEdit)
   at Dynamicweb.UserManagement.Frontend.Renderer.RenderUser(User user, Template template, Boolean includeParentGroups, PagingHandler pagingHandler, Boolean allowEdit)
   at DanskRideForbund.CustomModules.ProfileModule.ProfileModuleFrontend.ConfirmPolicies(ProfileHelper helper, DataArea dataArea) in D:\a\1\s\Application\CustomModules\ProfileModule\ProfileModuleFrontend.cs:line 188
   at DanskRideForbund.CustomModules.ProfileModule.ProfileModuleFrontend.GetContent() in D:\a\1\s\Application\CustomModules\ProfileModule\ProfileModuleFrontend.cs:line 76
   at Dynamicweb.Frontend.Content.GetModuleOutput(Paragraph paragraph, PageView pageview)