-
Bug
-
Resolution: Fixed
-
P3
-
6
-
beta
-
generic
-
generic
-
Verified
ImageWriter.endWriteSequence() is supposed to throw an IllegalStateException when output is not set for the writer. But currently this method throws the following NullPointerException:
java.lang.NullPointerException
at com.sun.imageio.plugins.gif.GIFImageWriter.writeTrailer(GIFImageWriter.java:1187)
at com.sun.imageio.plugins.gif.GIFImageWriter.endWriteSequence(GIFImageWriter.java:327)
at WriterTest.createBufferedImage(WriterTest.java:88)
at WriterTest.<init>(WriterTest.java:27)
at WriterTest.main(WriterTest.java:100)
This is reproducible on all platforms with the current 2D PIT build dated May'23rd.
I have attached a sample test. Execute the sample test. If you see the above NPE on the console, the bug is reproduced.
###@###.### 2005-05-24 18:09:05 GMT
java.lang.NullPointerException
at com.sun.imageio.plugins.gif.GIFImageWriter.writeTrailer(GIFImageWriter.java:1187)
at com.sun.imageio.plugins.gif.GIFImageWriter.endWriteSequence(GIFImageWriter.java:327)
at WriterTest.createBufferedImage(WriterTest.java:88)
at WriterTest.<init>(WriterTest.java:27)
at WriterTest.main(WriterTest.java:100)
This is reproducible on all platforms with the current 2D PIT build dated May'23rd.
I have attached a sample test. Execute the sample test. If you see the above NPE on the console, the bug is reproduced.
###@###.### 2005-05-24 18:09:05 GMT
- relates to
-
JDK-6275366 PIT:GIFWriter.endWriteSequence() does not throw Excpn when prepareWriteSeq() is not called
- Closed