From 7b36dc72e289ea3794458685f77aae86fb06387f Mon Sep 17 00:00:00 2001 From: Steve Wagner Date: Wed, 26 May 2010 10:43:40 +0200 Subject: [PATCH] Fix NullReferenceException do to a change in AutoMappingStore. --- source/MongoDB/Configuration/Mapping/AutoMappingStore.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source/MongoDB/Configuration/Mapping/AutoMappingStore.cs b/source/MongoDB/Configuration/Mapping/AutoMappingStore.cs index b48cbefa..cb80750d 100644 --- a/source/MongoDB/Configuration/Mapping/AutoMappingStore.cs +++ b/source/MongoDB/Configuration/Mapping/AutoMappingStore.cs @@ -17,7 +17,7 @@ public class AutoMappingStore : IMappingStore /// Initializes a new instance of the class. /// public AutoMappingStore() - : this((IAutoMapper)null, null) + : this(new AutoMapper()) { } @@ -58,8 +58,6 @@ public AutoMappingStore(IAutoMapper autoMapper, IMappingStore mappingStore) { if(autoMapper == null) throw new ArgumentNullException("autoMapper"); - if(mappingStore == null) - throw new ArgumentNullException("mappingStore"); _autoMapper = autoMapper; _autoMaps = new Dictionary();