Index: Riskeer/MacroStabilityInwards/src/Riskeer.MacroStabilityInwards.IO/Exporters/MacroStabilityInwardsCalculationGroupExporter.cs =================================================================== diff -u -r543cee7c690b143f71686df24fd86c43099ff917 -ra0b17caa7bd335c85488092b846082a8768023c6 --- Riskeer/MacroStabilityInwards/src/Riskeer.MacroStabilityInwards.IO/Exporters/MacroStabilityInwardsCalculationGroupExporter.cs (.../MacroStabilityInwardsCalculationGroupExporter.cs) (revision 543cee7c690b143f71686df24fd86c43099ff917) +++ Riskeer/MacroStabilityInwards/src/Riskeer.MacroStabilityInwards.IO/Exporters/MacroStabilityInwardsCalculationGroupExporter.cs (.../MacroStabilityInwardsCalculationGroupExporter.cs) (revision a0b17caa7bd335c85488092b846082a8768023c6) @@ -54,6 +54,8 @@ private readonly string fileExtension; private readonly Func getNormativeAssessmentLevelFunc; + private bool itemExported; + /// /// Creates a new instance of . /// @@ -118,7 +120,10 @@ return false; } - ZipFileExportHelper.CreateZipFileFromExportedFiles(tempFolderPath, filePath); + if (itemExported) + { + ZipFileExportHelper.CreateZipFileFromExportedFiles(tempFolderPath, filePath); + } return true; } @@ -216,6 +221,7 @@ log.InfoFormat("Gegevens van \'{0}\' zijn geƫxporteerd.", calculation.Name); exportedCalculations.Add(calculation, uniqueName); + itemExported = true; return true; }