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:
Michael Koch 2003-06-19 14:46:21 +00:00 committed by Michael Koch
parent e7a9b208d9
commit 3580a7d585
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2003-06-19 Michael Koch <konqueror@gmx.de>
* java/util/zip/InflaterInputStream.java
(InflaterInputStream): Throw NullPointerException if in is null (as
JDK does).
2003-06-19 Michael Koch <konqueror@gmx.de>
* java/awt/Font.java

View File

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