Просмотр исходного кода

do not write stream if null

tags/2.0.1
Jonathan Cobb 4 лет назад
Родитель
Сommit
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);
}

}

Загрузка…
Отмена
Сохранить