Skip to content

Commit

Permalink
Fix NullReferenceException do to a change in AutoMappingStore.
Browse files Browse the repository at this point in the history
  • Loading branch information
lanwin committed May 26, 2010
1 parent 64871a7 commit 7b36dc7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions source/MongoDB/Configuration/Mapping/AutoMappingStore.cs
Expand Up @@ -17,7 +17,7 @@ public class AutoMappingStore : IMappingStore
/// Initializes a new instance of the <see cref = "AutoMappingStore" /> class.
/// </summary>
public AutoMappingStore()
: this((IAutoMapper)null, null)
: this(new AutoMapper())
{
}

Expand Down Expand Up @@ -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<Type, IClassMap>();
Expand Down

0 comments on commit 7b36dc7

Please sign in to comment.