Skip to content

Commit 2345bb4

Browse files
Fix a null-ref exception with no-proxy one-to-one
This null reference exception was swallowed and was only bloating logs.
1 parent 25ad179 commit 2345bb4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/NHibernate/AdoNet/AbstractBatcher.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,8 @@ public virtual void CloseCommands()
316316

317317
private void CloseCommand(DbCommand cmd)
318318
{
319+
if (cmd == null)
320+
return;
319321
try
320322
{
321323
// no equiv to the java code in here

0 commit comments

Comments
 (0)