Can you create a failing test ? 2009/12/15 acl123 <[email protected]>
> I am getting a NullReferenceException when evicting an object: > > System.NullReferenceException: Object reference not set to an instance > of an object. > at NHibernate.Event.Default.EvictVisitor.EvictCollection > (IPersistentCollection collection) > at NHibernate.Event.Default.EvictVisitor.EvictCollection(Object value, > CollectionType type) > at NHibernate.Event.Default.EvictVisitor.ProcessCollection(Object > collection, CollectionType type) > at NHibernate.Event.Default.AbstractVisitor.ProcessValue(Object value, > IType type) > at NHibernate.Event.Default.AbstractVisitor.ProcessValue(Int32 i, > Object[] values, IType[] types) > at NHibernate.Event.Default.AbstractVisitor.ProcessEntityPropertyValues > (Object[] values, IType[] types) > at NHibernate.Event.Default.AbstractVisitor.Process(Object obj, > IEntityPersister persister) > at NHibernate.Event.Default.DefaultEvictEventListener.DoEvict(Object > obj, EntityKey key, IEntityPersister persister, IEventSource session) > at NHibernate.Event.Default.DefaultEvictEventListener.OnEvict > (EvictEvent event) > at NHibernate.Impl.SessionImpl.FireEvict(EvictEvent evictEvent) > at NHibernate.Impl.SessionImpl.Evict(Object obj) > > The object being evicted has a list of child objects, with cascades > set to "all". In turn, these child objects have a set of child of > objects with cascades set to "all-delete-orphan". The problem seems to > be with these grandchildren. If the set of grandchildren is empty, the > problem does not occur. > > -- > > You received this message because you are subscribed to the Google Groups > "nhusers" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<nhusers%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/nhusers?hl=en. > > > -- Fabio Maulo -- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
