Permalink
Browse files

Fix ArgumentNullException in SynchronizedDictionary

  • Loading branch information...
1 parent e63da73 commit 495711ca0d30ac997949aaad02b1d7922f651a0d @cdhowie committed Sep 16, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 Cdh.Toolkit.Collections/SynchronizedDictionary.cs
@@ -74,8 +74,8 @@ private void Initialize()
// lock from being acquired prior to throwing the inevitable
// exception.
- Keys = CreateSynchronizedReadOnlyCollection(Keys);
- Values = CreateSynchronizedReadOnlyCollection(Values);
+ Keys = CreateSynchronizedReadOnlyCollection(Decorated.Keys);
+ Values = CreateSynchronizedReadOnlyCollection(Decorated.Values);
}
private ICollection<T> CreateSynchronizedReadOnlyCollection<T>(ICollection<T> collection)

0 comments on commit 495711c

Please sign in to comment.