Merge pull request #901 from Blewzman/FixAggregateExceptionGetBaseException
[mono.git] / mcs / class / System / System.Collections.Generic / SortedDictionary.cs
index eb036e90e60d71dc25ad3ba45230aa5e877c509d..8efe18faaa06e3c3273ceb465619f94a3cf25ba1 100644 (file)
@@ -414,6 +414,9 @@ namespace System.Collections.Generic
 
                        public ValueCollection (SortedDictionary<TKey,TValue> dictionary)
                        {
+                               if (dictionary == null)
+                                       throw new ArgumentNullException ("dictionary");
+
                                _dic = dictionary;
                        }