2003-06-19 Michael Koch <konqueror@gmx.de>
* java/util/zip/InflaterInputStream.java (InflaterInputStream): Throw NullPointerException if in is null (as JDK does). From-SVN: r68197
This commit is contained in:
parent
e7a9b208d9
commit
3580a7d585
2 changed files with 10 additions and 0 deletions
|
@ -73,6 +73,10 @@ public class InflaterInputStream extends FilterInputStream
|
|||
public InflaterInputStream (InputStream in, Inflater infl, int bufsize)
|
||||
{
|
||||
super (in);
|
||||
|
||||
if (in == null)
|
||||
throw new NullPointerException();
|
||||
|
||||
this.inf = infl;
|
||||
this.buf = new byte[bufsize];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue