Skip to content

Fix NullPointerException when reading XZ entries in ZipArchiveInputStream#774

Open
zwarneke wants to merge 2 commits into
apache:masterfrom
zwarneke:xz-entry-read-fix
Open

Fix NullPointerException when reading XZ entries in ZipArchiveInputStream#774
zwarneke wants to merge 2 commits into
apache:masterfrom
zwarneke:xz-entry-read-fix

Conversation

@zwarneke
Copy link
Copy Markdown

@zwarneke zwarneke commented May 18, 2026

Reading from a zip archive with an XZ entry using ZipArchiveInputStream throws an exception currently, because the entry's input stream isn't initialized in getNextZipEntry. This fixes that. See added test to reproduce.

Before you push a pull request, review this list:

  • Read the contribution guidelines for this project.
  • Run a successful build using the default Maven goal with mvn; that's mvn on the command line by itself.
  • Write unit tests that match behavioral changes, where the tests fail if the changes to the runtime are not applied. This may not always be possible, but it is a best practice.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Each commit in the pull request should have a meaningful subject line and body. Note that a maintainer may squash commits during the merge process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant