Permalink
Browse files

Throw `ArgumentNullException` if dialect is null

  • Loading branch information...
1 parent 2b689d6 commit 9c3b457f255410dd49d8f5e0073e2da67bee31ab @tt tt committed Jan 8, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/proj/EventStore.Persistence.SqlPersistence/SqlPersistenceFactory.cs
@@ -1,5 +1,6 @@
namespace EventStore.Persistence.SqlPersistence
{
+ using System;
using System.Configuration;
using System.Transactions;
using Serialization;
@@ -36,6 +37,9 @@ public SqlPersistenceFactory(IConnectionFactory factory, ISerialize serializer,
int pageSize)
: this(serializer, scopeOption, pageSize)
{
+ if (dialect == null)
+ throw new ArgumentNullException("dialect");
+
this.connectionFactory = factory;
this.dialect = dialect;
}

0 comments on commit 9c3b457

Please sign in to comment.