diff options
author | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-19 14:46:21 +0000 |
---|---|---|
committer | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-19 14:46:21 +0000 |
commit | 208f6aa90d7709852c3c07ac158a0f9cc0a410b4 (patch) | |
tree | e07e0d952eb0214c4cc0df5d4cbce6a5190ac9d6 /libjava | |
parent | 6bd5bfbf20d8b5ad2ec63ddc1d23f932fc26c4c7 (diff) | |
download | gcc-208f6aa90d7709852c3c07ac158a0f9cc0a410b4.tar.gz |
2003-06-19 Michael Koch <konqueror@gmx.de>
* java/util/zip/InflaterInputStream.java
(InflaterInputStream): Throw NullPointerException if in is null (as
JDK does).
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68197 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava')
-rw-r--r-- | libjava/ChangeLog | 6 | ||||
-rw-r--r-- | libjava/java/util/zip/InflaterInputStream.java | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 67e842e6f36..6423b5d0050 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,5 +1,11 @@ 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 javax/swing/UIManager.java javax/swing/border/AbstractBorder.java diff --git a/libjava/java/util/zip/InflaterInputStream.java b/libjava/java/util/zip/InflaterInputStream.java index b04534977f1..8ee88e5f11c 100644 --- a/libjava/java/util/zip/InflaterInputStream.java +++ b/libjava/java/util/zip/InflaterInputStream.java @@ -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]; } |