You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Bruno P. Kinoshita (Jira)" <ji...@apache.org> on 2021/02/20 08:12:00 UTC
[jira] [Updated] (IMAGING-282) NullPointerException in
org.apache.commons.imaging.formats.gif.GifImageParser.getMetadata() when
GraphicControlExtension is null
[ https://issues.apache.org/jira/browse/IMAGING-282?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bruno P. Kinoshita updated IMAGING-282:
---------------------------------------
Assignee: Bruno P. Kinoshita
> NullPointerException in org.apache.commons.imaging.formats.gif.GifImageParser.getMetadata() when GraphicControlExtension is null
> ---------------------------------------------------------------------------------------------------------------------------------
>
> Key: IMAGING-282
> URL: https://issues.apache.org/jira/browse/IMAGING-282
> Project: Commons Imaging
> Issue Type: Bug
> Components: Format: GIF
> Affects Versions: 1.0-alpha2
> Reporter: Samuel Monsarrat
> Assignee: Bruno P. Kinoshita
> Priority: Minor
> Attachments: problem.gif
>
>
> The attached gif file produces a NullPointerException in org.apache.commons.imaging.formats.gif.GifImageParser.getMetadata() l553 due to variable id not having a GraphicControlExtension component (id.gce = null).
> This is set to null in findAllImageData l715.
> Elsewhere in org.apache.commons.imaging.formats.gif.GifImageParser is tested for null (l746).
> This gif seems to contain incorrect metadata. Simply re-saving it with ImageMagick correct the issue but since the gif is correctly displayed by all viewers at my disposal it would seem that org.apache.commons.imaging needs to be more permissive.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)