Uploaded image for project: 'Commons Imaging'
  1. Commons Imaging
  2. IMAGING-282

NullPointerException in org.apache.commons.imaging.formats.gif.GifImageParser.getMetadata() when GraphicControlExtension is null

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.0-alpha2
    • 1.0.0-alpha6
    • Format: GIF
    • None

    Description

      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.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            kinow Bruno P. Kinoshita
            smonsarr Samuel Monsarrat

            Dates

              Created:
              Updated:

              Slack

                Issue deployment