From: Michael D. <mik...@us...> - 2005-02-11 05:15:48
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate.DomainModel/NHSpecific In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16616/NHibernate.DomainModel/NHSpecific Modified Files: LazyLoadBug.cs Log Message: added comments about why an exception should be thrown. Index: LazyLoadBug.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.DomainModel/NHSpecific/LazyLoadBug.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** LazyLoadBug.cs 10 Feb 2005 17:48:00 -0000 1.1 --- LazyLoadBug.cs 11 Feb 2005 05:15:35 -0000 1.2 *************** *** 47,50 **** --- 47,53 ---- { _parent = value; + // this is the source of the "bug" - more accurately described as user error + // but it raised a Null Pointer Exception instead of a LazyInitializationException + // like it should have. _parent.Children.Add( this ); } |