Преглед изворни кода

do not write stream if null

tags/2.0.1
Jonathan Cobb пре 4 година
родитељ
комит
19655fd0ae
1 измењених фајлова са 3 додато и 1 уклоњено
  1. +3
    -1
      wizard-server/src/main/java/org/cobbzilla/wizard/stream/StreamStreamingOutput.java

+ 3
- 1
wizard-server/src/main/java/org/cobbzilla/wizard/stream/StreamStreamingOutput.java Прегледај датотеку

@@ -15,6 +15,8 @@ public class StreamStreamingOutput implements StreamingOutput {

private InputStream in;

@Override public void write(OutputStream out) throws IOException, WebApplicationException { copyLarge(in, out); }
@Override public void write(OutputStream out) throws IOException, WebApplicationException {
if (in != null) copyLarge(in, out);
}

}

Loading…
Откажи
Сачувај