File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
spring-ws-core/src/main/java/org/springframework/ws/transport Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,9 @@ private InputStream getInputStream() throws IOException {
4747
4848 @ Override
4949 public void close () throws IOException {
50- getInputStream ().close ();
50+ if (inputStream != null ) {
51+ getInputStream ().close ();
52+ }
5153 }
5254
5355 @ Override
Original file line number Diff line number Diff line change @@ -45,12 +45,16 @@ private OutputStream getOutputStream() throws IOException {
4545
4646 @ Override
4747 public void close () throws IOException {
48- getOutputStream ().close ();
48+ if (outputStream != null ) {
49+ getOutputStream ().close ();
50+ }
4951 }
5052
5153 @ Override
5254 public void flush () throws IOException {
53- getOutputStream ().flush ();
55+ if (outputStream != null ) {
56+ getOutputStream ().flush ();
57+ }
5458 }
5559
5660 @ Override
You can’t perform that action at this time.
0 commit comments