incubator-sanselan-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Charles Matthew Chen (JIRA)" <j...@apache.org>
Subject [jira] Closed: (SANSELAN-23) NullPointerException(Sanselan.java:323)
Date Wed, 01 Jul 2009 01:48:47 GMT

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

Charles Matthew Chen closed SANSELAN-23.
----------------------------------------

    Resolution: Fixed

 * Fixed a possible NPE in Sanselan.getICCProfile pointed out by Jon Weygandt.

Thank you Jon.


> 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