Skip to content
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

Fix NPE preventing XRefStream objects being read #263

Merged
merged 4 commits into from
Jul 20, 2017

Conversation

carlwilson
Copy link
Member

A NullPointerException was being thrown when trying to validate the
Index entry of any CrossRefStream dictionary.

The NPEs were hidden by the method's general Exception handling, and even
though the containing method was returning false, and ending file
validation, no errors of any kind were being reported.

This resulted in any PDF with a CrossRefStream object being reported as
"Well-formed and valid" though most of the file's contents would remain
unchecked.

A NullPointerException was being thrown when trying to validate the
Index entry of any CrossRefStream dictionary.

The NPEs were hidden by the method's general Exception handling, and even
though the containing method was returning false, and ending file
validation, no errors of any kind were being reported.

This resulted in any PDF with a CrossRefStream object being reported as
"Well-formed and valid" though most of the file's contents would remain
unchecked.
@codecov
Copy link

codecov bot commented Jul 19, 2017

Codecov Report

Merging #263 into release-1.16 will decrease coverage by <.01%.
The diff coverage is 0%.

Impacted file tree graph

@@               Coverage Diff               @@
##           release-1.16    #263      +/-   ##
===============================================
- Coverage          3.44%   3.44%   -0.01%     
===============================================
  Files               411     411              
  Lines             34693   34695       +2     
  Branches           6742    6742              
===============================================
  Hits               1195    1195              
- Misses            33403   33405       +2     
  Partials             95      95
Impacted Files Coverage Δ
...rvard/hul/ois/jhove/module/pdf/CrossRefStream.java 0% <0%> (ø) ⬆️
...va/edu/harvard/hul/ois/jhove/module/PdfModule.java 0% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8c8a858...22376ab. Read the comment docs.

@carlwilson carlwilson requested a review from david-russo July 19, 2017 23:29
@carlwilson
Copy link
Member Author

1.16 hotfix for #258 to fix a PDF module bug.

- updated RELEASENOTES with hotfix details;
- bumped PDF module version post-fix; and
- fixed test file patching.
@carlwilson
Copy link
Member Author

Includes and closes #258

@carlwilson carlwilson merged commit f9ed7bc into release-1.16 Jul 20, 2017
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.

2 participants