From 39d709f41dd29748a310859dd8003968f158e779 Mon Sep 17 00:00:00 2001 From: Aldo Mihasi Date: Tue, 13 Dec 2022 09:46:00 +0200 Subject: [PATCH] no message --- .../eu/eudat/logic/managers/DataManagementPlanManager.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/DataManagementPlanManager.java b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/DataManagementPlanManager.java index f09c36201..5811c27d9 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/DataManagementPlanManager.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/DataManagementPlanManager.java @@ -2186,7 +2186,9 @@ public class DataManagementPlanManager { doiModel = new Doi().fromDataModel(doiEntity); } - Files.deleteIfExists(supportingFilesZip.toPath()); + if(supportingFilesZip != null) { + Files.deleteIfExists(supportingFilesZip.toPath()); + } Files.deleteIfExists(file.getFile().toPath()); return doiModel;