浏览代码

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

}

正在加载...
取消
保存