Skip to content
Snippets Groups Projects
Commit e5a88f29 authored by aboeckle's avatar aboeckle
Browse files

OO-5463: Fix Upload without Files

parent e63677b1
No related branches found
No related tags found
No related merge requests found
......@@ -133,9 +133,11 @@ public class InfoMessageFrontendManagerImpl implements InfoMessageFrontendManage
VFSContainer attachmentFolder = VFSManager.getOrCreateContainer(ressourceContainer, folderName);
for(File file : attachmentTempDirectory.listFiles()) {
VFSLeaf leaf = attachmentFolder.createChildLeaf(file.getName());
VFSManager.copyContent(file, leaf, identity);
if (attachmentTempDirectory != null) {
for(File file : attachmentTempDirectory.listFiles()) {
VFSLeaf leaf = attachmentFolder.createChildLeaf(file.getName());
VFSManager.copyContent(file, leaf, identity);
}
}
return VFSManager.getRelativeItemPath(attachmentFolder, getStoragePath(), null);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment