ソースを参照

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);
}

}

読み込み中…
キャンセル
保存