Hi
I'm having trouble with a UserIndexBuilder I'm trying to extend. I would like to get VatRegNumber included in my indexed, but when I call User.GetUsers () in the extender, I get the following error.
object reference not set to an instance of an object
at Dynamicweb.Security.UserManagement.Common.CustomFields.CustomField.GetCustomFields()
at Dynamicweb.Security.UserManagement.Common.CustomFields.CustomField.GetCustomFields(String tableName)
at Dynamicweb.Security.UserManagement.Common.CustomFields.CustomFieldValue.GetCustomFieldValuesFromContainer(String tableName, Object container)
at Dynamicweb.Security.UserManagement.User.Fill(IDataReader reader)
at Dynamicweb.Security.UserManagement.User.GetUsers(CommandBuilder commandBuilder)
at Smartpage.Indexing.UserIndexBuilderExtender.get_Users() in C:\Workspace\Dansk Bilglas\Main\Source\Smartpage.Indexing\UserIndexBuilderExtender.cs:line 24
at Smartpage.Indexing.UserIndexBuilderExtender.ExtendDocument(IndexDocument indexDocument) in C:\Workspace\Dansk Bilglas\Main\Source\Smartpage.Indexing\UserIndexBuilderExtender.cs:line 49
at Dynamicweb.Security.UserManagement.Indexing.UserIndexBuilder.WriteDoc(IndexDocument doc, Int64 currentAutoId)
at Dynamicweb.Security.UserManagement.Indexing.UserIndexBuilder.ProcessUsers()
at Dynamicweb.Security.UserManagement.Indexing.UserIndexBuilder.Build(IIndexWriter writer, Tracker tracker)