Author: roeie
Date: 2008-02-20 13:43:57 -0500 (Wed, 20 Feb 2008)
New Revision: 96285

Modified:
   branches/mainsoft/gh2.2/mcs/class/System/System.Collections.Generic/Stack.cs
Log:
bug 9857

Modified: 
branches/mainsoft/gh2.2/mcs/class/System/System.Collections.Generic/Stack.cs
===================================================================
--- 
branches/mainsoft/gh2.2/mcs/class/System/System.Collections.Generic/Stack.cs    
    2008-02-20 18:27:02 UTC (rev 96284)
+++ 
branches/mainsoft/gh2.2/mcs/class/System/System.Collections.Generic/Stack.cs    
    2008-02-20 18:43:57 UTC (rev 96285)
@@ -121,7 +121,7 @@
 
                public void Push (T t)
                {
-                       if (_size == 0 || _size == _array.Length)
+                       if (_array == null || _size == _array.Length)
                                Array.Resize <T> (ref _array, _size == 0 ? 
INITIAL_SIZE : 2 * _size);
                        
                        _version ++;

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to