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
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: