Procházet zdrojové kódy

do not write stream if null

tags/2.0.1
Jonathan Cobb před 4 roky
rodič
revize
19655fd0ae
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  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 Zobrazit soubor

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

}

Načítá se…
Zrušit
Uložit