From 1a53a46c1b35bd58d790b9581ff9cdc98e33c289 Mon Sep 17 00:00:00 2001 From: Regis Bittencourt Date: Tue, 14 Jul 2015 11:27:02 +0100 Subject: [PATCH] Update OutputCommandOperation.cs Missing null check on transaction. Added to make it like SqlBulkInsertOperation. --- Rhino.Etl.Core/Operations/OutputCommandOperation.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rhino.Etl.Core/Operations/OutputCommandOperation.cs b/Rhino.Etl.Core/Operations/OutputCommandOperation.cs index 728c7f8..629a16f 100644 --- a/Rhino.Etl.Core/Operations/OutputCommandOperation.cs +++ b/Rhino.Etl.Core/Operations/OutputCommandOperation.cs @@ -52,7 +52,7 @@ public override IEnumerable Execute(IEnumerable rows) if (PipelineExecuter.HasErrors) { Warn("Rolling back transaction in {0}", Name); - transaction.Rollback(); + if (transaction != null) transaction.Rollback(); Warn("Rolled back transaction in {0}", Name); } else