[AB-93] fixing not initializing the attached files

This commit is contained in:
Sheldan
2023-05-18 23:43:34 +02:00
parent 8a41f366ae
commit 080733957f
2 changed files with 4 additions and 3 deletions

View File

@@ -342,7 +342,7 @@ public class ChannelServiceBean implements ChannelService {
throw new IllegalArgumentException("Message to send did not contain anything to send.");
}
}
if(messageToSend.getAttachedFiles() != null && !messageToSend.getAttachedFiles().isEmpty()) {
if(!messageToSend.getAttachedFiles().isEmpty()) {
List<FileUpload> files = messageToSend
.getAttachedFiles()
.stream()