[OpenJDK 2D-Dev] [9] Fix for JDK-6427331 : NullPointerException in LookupOp.filter(Raster, WritableRaster)

Ajit Ghaisas ajit.ghaisas at oracle.com
Tue Aug 2 12:50:01 UTC 2016


Thanks Prasanta.

I checked filter() methods of following classes -

AffineTransformOp, ColorConvertOp, ConvolveOp, LookupOp, RescaleOp and BandCombineOp.

They do not have this issue of accessing null destination buffer/raster.

 

From: Prasanta Sadhukhan 
Sent: Tuesday, August 02, 2016 2:59 PM
To: Ajit Ghaisas; 2d-dev
Subject: Re: [OpenJDK 2D-Dev] [9] Fix for JDK-6427331 : NullPointerException in LookupOp.filter(Raster, WritableRaster)

 

+1. Just check other op file like Rescale, Convolve if similar problem exists there too.

Regards
Prasanta

On 8/2/2016 2:31 PM, Ajit Ghaisas wrote:

Hi,

 

   Bug : https://bugs.openjdk.java.net/browse/JDK-6427331

   Issue : If destination raster is provided as null to  java.awt.image.LookupOp.filter(Raster src, WritableRaster dest),

                according to Javadoc, a new raster should be created. Instead, it results in NullPointerException.

 

   Fix : HYPERLINK "http://cr.openjdk.java.net/%7Eaghaisas/6427331/webrev.00/"http://cr.openjdk.java.net/~aghaisas/6427331/webrev.00/

 

   Request you to review.

 

Regards,

Ajit

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/2d-dev/attachments/20160802/9e1100d7/attachment.html>


More information about the 2d-dev mailing list