Merge 6832e21b12c564d5f4c0ee271c5f0e8b60a54ab7 into 135d3a16777b4fe13d836c47daea13870776df60

This commit is contained in:
marshallaeon 2026-04-01 22:20:41 +02:00 committed by GitHub
commit 3ceeb43f4d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -44,6 +44,9 @@ public class AttachmentStore {
}
public StreamDetails retrieveAttachment(final String id) throws IOException {
if (id == null || id.isEmpty()) {
throw new IOException("Attachment ID must not be null or empty");
}
final var attachmentFile = new File(attachmentsPath, id);
return Utils.createStreamDetailsFromFile(attachmentFile);
}