Marti2203 opened a new pull request, #578:
URL: https://github.com/apache/commons-imaging/pull/578

   Fixes [IMAGING-282](https://issues.apache.org/jira/browse/IMAGING-282).
   
   `GifImageParser.getMetadata()` read `id.gce.dispose` and `id.gce.delay`, but 
the Graphic Control Extension is optional and `gce` is null for images without 
one, so their metadata threw `NullPointerException`. The other uses of `gce` in 
the parser already check for null. This reports such an image with no delay and 
`DisposalMethod.UNSPECIFIED`, the values the extension would encode for "none".
   
   `GifReadTest.testMetadataWithoutGraphicControlExtension` reads a minimal 1x1 
GIF89a without the extension; it throws the NPE without the change. 
`GifReadTest` and `mvn -B -DskipTests -DskipITs` pass.
   
   This issue was also found by an LLM-Enhanced Static Analysis Engine and 
verified manually. The patch and this description were prepared with AI 
assistance (Claude Code) and reviewed by me; the commit carries an 
`Assisted-By:` trailer.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to