Skip to content
Snippets Groups Projects
Commit ff7d9e61 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-2966 OZG-3171 fix stream already closed exception

parent d94a7ca4
Branches
Tags
No related merge requests found
...@@ -79,8 +79,8 @@ class PostfachMailService { ...@@ -79,8 +79,8 @@ class PostfachMailService {
} }
public OutputStream getAllAsPdf(VorgangWithEingang vorgang, OutputStream out) { public OutputStream getAllAsPdf(VorgangWithEingang vorgang, OutputStream out) {
var postfachMails = getAll(vorgang.getId()); var postfachMails = getAll(vorgang.getId()).toList();
return pdfService.getAllAsPdf(vorgang, postfachMails, getFiles(postfachMails), out); return pdfService.getAllAsPdf(vorgang, postfachMails.stream(), getFiles(postfachMails.stream()), out);
} }
public Stream<PostfachMail> getAll(String vorgangId) { public Stream<PostfachMail> getAll(String vorgangId) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment