commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Bourg (Resolved) (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (SANSELAN-23) NullPointerException(Sanselan.java:323)
Date Tue, 20 Dec 2011 11:19:31 GMT

     [ https://issues.apache.org/jira/browse/SANSELAN-23?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Emmanuel Bourg resolved SANSELAN-23.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.0
    
> NullPointerException(Sanselan.java:323)
> ---------------------------------------
>
>                 Key: SANSELAN-23
>                 URL: https://issues.apache.org/jira/browse/SANSELAN-23
>             Project: Commons Sanselan
>          Issue Type: Bug
>            Reporter: Jon Weygandt
>             Fix For: 1.0
>
>
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message