Build : 'K' (-classic..ok, pass on build:E but failed in:F)
applet : WarpImage (attached zip)
The culprit is the animated gif: compass.gif
If you try warping this image by click/drag the image from the center to somewhere outside of the Window edge. You'll get the following NPE:
java.lang.NullPointerException at sun.java2d.SunGraphics2D.getTransformColorModel(SunGraphics2D.java:1959)
> > > > at
> > > sun.java2d.SunGraphics2D.renderingPipeImage(SunGraphics2D.java:2108)
> > > > at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:1751)
> > > > at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:1732)
> > > > at sun.awt.windows.WGraphics.drawImage(WGraphics.java:507)
> > > > at
> > > sun.awt.image.ImageRepresentation.drawToBufImage(ImageRepresentation.
> > > > java:744)
> > > > at sun.awt.windows.WGraphics.drawImage(WGraphics.java:530)
> > > > at WarpImage.paint(WarpImage.java:192)
> > > > at WarpImage.update(WarpImage.java:143)
> > > > at sun.awt.RepaintArea.update(RepaintArea.java:341)
> > > > at
> > sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:173)
> > > > at java.awt.Component.dispatchEventImpl(Component.java:2633)
> > > > at java.awt.Container.dispatchEventImpl(Container.java:1304)
> > > > at java.awt.Component.dispatchEvent(Component.java:2466)
> > > > at java.awt.EventQueue.dispatchEvent(EventQueue.java:322)
> > > > at
> > > java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:10
> > > > 7)
> > > > at
> > > java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:97)
> > > > at java.awt.EventDispatchThread.run(EventDispatchThread.java:88)
=================
This is not a 2D bug. The line of code that it fails on is valid:
cmap[mapSize] = 0x0000;
(cmap.length==33, mapSize==32)
There is no exception when running with -classic.
applet : WarpImage (attached zip)
The culprit is the animated gif: compass.gif
If you try warping this image by click/drag the image from the center to somewhere outside of the Window edge. You'll get the following NPE:
java.lang.NullPointerException at sun.java2d.SunGraphics2D.getTransformColorModel(SunGraphics2D.java:1959)
> > > > at
> > > sun.java2d.SunGraphics2D.renderingPipeImage(SunGraphics2D.java:2108)
> > > > at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:1751)
> > > > at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:1732)
> > > > at sun.awt.windows.WGraphics.drawImage(WGraphics.java:507)
> > > > at
> > > sun.awt.image.ImageRepresentation.drawToBufImage(ImageRepresentation.
> > > > java:744)
> > > > at sun.awt.windows.WGraphics.drawImage(WGraphics.java:530)
> > > > at WarpImage.paint(WarpImage.java:192)
> > > > at WarpImage.update(WarpImage.java:143)
> > > > at sun.awt.RepaintArea.update(RepaintArea.java:341)
> > > > at
> > sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:173)
> > > > at java.awt.Component.dispatchEventImpl(Component.java:2633)
> > > > at java.awt.Container.dispatchEventImpl(Container.java:1304)
> > > > at java.awt.Component.dispatchEvent(Component.java:2466)
> > > > at java.awt.EventQueue.dispatchEvent(EventQueue.java:322)
> > > > at
> > > java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:10
> > > > 7)
> > > > at
> > > java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:97)
> > > > at java.awt.EventDispatchThread.run(EventDispatchThread.java:88)
=================
This is not a 2D bug. The line of code that it fails on is valid:
cmap[mapSize] = 0x0000;
(cmap.length==33, mapSize==32)
There is no exception when running with -classic.