no message

This commit is contained in:
Bernaldo Mihasi 2022-12-13 09:46:00 +02:00
parent c6d37806c8
commit 39d709f41d
1 changed files with 3 additions and 1 deletions

View File

@ -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;