I am migrating between the said versions and have been introduced to a
new bug in doing so. The bug happens in our application's
interceptors:

public override void AfterTransactionCompletion
(global::NHibernate.ITransaction tx)
{
            base.AfterTransactionCompletion(tx);

            if (tx.WasCommitted) <-- NULL REFERENCE EXCEPTION ON 'tx'
            { ....}
}

In NH 2.0.0, there was an explicit check for a null condition before
calling this interceptor method. In NH 2.1.2, this check was removed.


NHibernate 2.0
-------------------------
SessionImpl -> line 344 :: if (rootSession == null && tx != null)


NHibernate 2.1.2
-------------------------
SessionImpl -> line 397 :: if (rootSession == null)


My work around will be checking for a null condition in my interceptor
implementation. I am curious as to why this changed.

Thank you - Patrick

--

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.


Reply via email to