ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Jain" <Eric.J...@isb-sib.ch>
Subject CBZip2InputStream
Date Wed, 24 Sep 2003 12:44:59 GMT
I'm trying to use the CBZip2InputStream class which is distributed as
part of Ant in my own application. Unfortunately the constructor always
throws a NullPointerException. There was some discussion at

  http://issues.apache.org/bugzilla/show_bug.cgi?id=15465

but I don't quite understand what the conclusion was, i.e. how to work
around this issue. This is what I am doing:

  InputStream in = new FileInputStream(file);
  BufferedReader reader =
    new BufferedReader(
      new InputStreamReader(
        new CBZip2InputStream(in)));

The stack trace:

  java.lang.NullPointerException
    at
org.apache.tools.bzip2.CBZip2InputStream.bsR(CBZip2InputStream.java:323)
    at
org.apache.tools.bzip2.CBZip2InputStream.bsGetUChar(CBZip2InputStream.ja
va:341)
    at
org.apache.tools.bzip2.CBZip2InputStream.initBlock(CBZip2InputStream.jav
a:230)
    at
org.apache.tools.bzip2.CBZip2InputStream.<init>(CBZip2InputStream.java:1
78)
    ...

--
Eric Jain


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message