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;