Null vendor information in TextImageReader.SPI breaks classpath JAI 
--------------------------------------------------------------------

                 Key: GEOT-1134
                 URL: http://jira.codehaus.org/browse/GEOT-1134
             Project: GeoTools
          Issue Type: Bug
          Components: core coverage
    Affects Versions: 2.3.0, 2.2.2
            Reporter: Andrea Aime
         Assigned To: Martin Desruisseaux
             Fix For: 2.2.3, 2.3.1, 2.4.M0


Using JAI image i/o in the classpath, as opposed to having it installed in the 
JDK, makes it throw a null pointer exception in 
com.sun.media.imageioimpl.common.ImageUtil, where the code is:

        while (iter.hasNext()) {
            provider = (ImageReaderWriterSpi)iter.next();

            // Look for JDK core ImageWriterSpi's
            if (provider.getVendorName().startsWith("Sun Microsystems") &&
                desc.equalsIgnoreCase(provider.getDescription(locale)) &&

Further inspection shows the provider that breaks the code is 
TextImageReader.SPI, because vendorName is not initialised.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to