Commit 3580a7d5 by Michael Koch Committed by Michael Koch

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
parent e7a9b208
2003-06-19 Michael Koch <konqueror@gmx.de> 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 * java/awt/Font.java
javax/swing/UIManager.java javax/swing/UIManager.java
javax/swing/border/AbstractBorder.java javax/swing/border/AbstractBorder.java
......
...@@ -73,6 +73,10 @@ public class InflaterInputStream extends FilterInputStream ...@@ -73,6 +73,10 @@ public class InflaterInputStream extends FilterInputStream
public InflaterInputStream (InputStream in, Inflater infl, int bufsize) public InflaterInputStream (InputStream in, Inflater infl, int bufsize)
{ {
super (in); super (in);
if (in == null)
throw new NullPointerException();
this.inf = infl; this.inf = infl;
this.buf = new byte[bufsize]; this.buf = new byte[bufsize];
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment