incubator-sanselan-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jon Weygandt (JIRA)" <j...@apache.org>
Subject [jira] Created: (SANSELAN-23) NullPointerException(Sanselan.java:323)
Date Thu, 21 May 2009 19:42:45 GMT
NullPointerException(Sanselan.java:323)
---------------------------------------

                 Key: SANSELAN-23
                 URL: https://issues.apache.org/jira/browse/SANSELAN-23
             Project: Sanselan
          Issue Type: Bug
            Reporter: Jon Weygandt


Static code analysis reveals that IccProfileParser.getICCProfileInfo can return a null value.

Sanselan.getICCProfile(line 323) uses info, which can be null, without checking for the value.

There is a test case in Shindig, JPEGOptimizerTest.testBadICC4, where the ICC count is too
large. On some JVMs (like Sun) you get an OutOfMemory error, on other like IBM null is returned
from getICCProfileInfo, resulting in a NPE.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message