aboutsummaryrefslogtreecommitdiff
path: root/libjava/java
diff options
context:
space:
mode:
authorMichael Koch <konqueror@gmx.de>2003-06-19 14:46:21 +0000
committerMichael Koch <mkoch@gcc.gnu.org>2003-06-19 14:46:21 +0000
commit3580a7d58578ad416172c22400df81b1702c47ae (patch)
treee07e0d952eb0214c4cc0df5d4cbce6a5190ac9d6 /libjava/java
parente7a9b208d9da93b8102845188d78d339076127e3 (diff)
downloadgcc-3580a7d58578ad416172c22400df81b1702c47ae.zip
gcc-3580a7d58578ad416172c22400df81b1702c47ae.tar.gz
gcc-3580a7d58578ad416172c22400df81b1702c47ae.tar.bz2
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
Diffstat (limited to 'libjava/java')
-rw-r--r--libjava/java/util/zip/InflaterInputStream.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/libjava/java/util/zip/InflaterInputStream.java b/libjava/java/util/zip/InflaterInputStream.java
index b045349..8ee88e5 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];
}