-
Notifications
You must be signed in to change notification settings - Fork 402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NullPointerException when attempting to "doValidate" on a non-epub #1050
Labels
priority: medium
To be processed and published in one of the upcoming releases
status: has PR
The issue is being processed in a pull request
type: bug
The issue describes a bug
Milestone
Comments
rdeltour
added
priority: medium
To be processed and published in one of the upcoming releases
status: accepted
Ready to be further processed
type: bug
The issue describes a bug
labels
Jun 4, 2019
Thanks for the report! EPUBCheck should fail more gracefully indeed :-) |
This was referenced Dec 10, 2019
rdeltour
added a commit
that referenced
this issue
Apr 30, 2020
Running EPUBCheck on a non-EPUB package file (for instance an Office Open XML document) caused a a `NullPointerException`. It now fails gracefully with a fatal error (RSC-002) potentially followed by side-effect errors (typically RSC-001, PKG-006). Fixes #1050
rdeltour
added
status: has PR
The issue is being processed in a pull request
and removed
status: accepted
Ready to be further processed
labels
Apr 30, 2020
rdeltour
added a commit
that referenced
this issue
May 1, 2020
Running EPUBCheck on a non-EPUB package file (for instance an Office Open XML document) caused a a `NullPointerException`. It now fails gracefully with a fatal error (RSC-002) potentially followed by side-effect errors (typically RSC-001, PKG-006). Fixes #1050
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
priority: medium
To be processed and published in one of the upcoming releases
status: has PR
The issue is being processed in a pull request
type: bug
The issue describes a bug
I'm using the EPUBCheck as a Java library to create an EPUB JHOVE module that we can plug into our existing validation workflow. In one unit test I passed in a
.docx
file to see if it would fail gracefully when a non-EPUB is accidentally provided. The result is aNullPointerException
. Stepping through, it seems to be assuming there is aMETA-INF/container.xml
even though the file isn't even a .zip file, and the absence of this file causes a NPE:The text was updated successfully, but these errors were encountered: