NullReferenceException in AttributeSearchMapping if NHibernate.Envers is used
Description
NHibernate.Envers enhances the SessionFactory Metadata with Audit Tables. These Audit Tables have no corresponding mapped Classes so mapping.MappedClass is null in this case => NullReferenceException
NHibernate.Envers enhances the SessionFactory Metadata with Audit Tables. These Audit Tables have no corresponding mapped Classes so mapping.MappedClass is null in this case => NullReferenceException
I have attached a Patch which fixes this