Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Collection
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10476/NHibernate/Collection
Modified Files:
Set.cs SortedSet.cs
Log Message:
Fixed problem with a SortedSet not being lazily initialized correctly that
caused a Null Reference Exception during a flush.
Index: SortedSet.cs
===================================================================
RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Collection/SortedSet.cs,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** SortedSet.cs 27 Apr 2004 15:49:21 -0000 1.4
--- SortedSet.cs 14 Jul 2004 21:26:35 -0000 1.5
***************
*** 54,58 ****
/// <param name="session"></param>
/// <param name="comparer">The IComparer to user for Sorting.</param>
! public SortedSet(ISessionImplementor session, IComparer comparer) : base(session, new SortedList(comparer))
{
this.comparer = comparer;
--- 54,58 ----
/// <param name="session"></param>
/// <param name="comparer">The IComparer to user for Sorting.</param>
! public SortedSet(ISessionImplementor session, IComparer comparer) : base(session)
{
this.comparer = comparer;
Index: Set.cs
===================================================================
RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Collection/Set.cs,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** Set.cs 3 Jun 2004 13:29:32 -0000 1.8
--- Set.cs 14 Jul 2004 21:26:34 -0000 1.9
***************
*** 74,77 ****
--- 74,85 ----
public Set(ISessionImplementor session) : base(session) { }
+ /// <summary>
+ /// Creates a new Set initialized to the values in the Map.
+ /// </summary>
+ /// <param name="session"></param>
+ /// <param name="map"></param>
+ /// <remarks>
+ /// Only call this constructor if you consider the map initialized.
+ /// </remarks>
public Set(ISessionImplementor session, IDictionary map) : base(session) {
this.map = map;
|