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

Fixes #375: Handle class cast from indirect object to simple object #597

Merged
merged 2 commits into from
May 14, 2020

Conversation

karenhanson
Copy link
Contributor

This fix for issue #375 repairs a ClassCastException relating to casting from an indirect object to a simple object. This seems to be a common conversion throughout the PdfModule that has been handled using the resolveIndirectObject method. This fix simply passes the object causing the problem into that method. I didn't write a test since this seems to be a repeated feature of the code, and the test would involve getting permission to use the file supplied with the issue. Please let me know if I should write it anyway.

It looks like PR #596 may be responding to a similar issue.

…ple object

This fix for issue openpreserve#375 repairs a ClassCastException relating to casting from an indirect object to a simple object. This seems to be a common conversion through PdfModule that has been handled using the `resolveIndirectObject` method. The fix simply passes the object causing the problem into that method.
@codecov
Copy link

codecov bot commented May 13, 2020

Codecov Report

Merging #597 into integration will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@              Coverage Diff               @@
##             integration     #597   +/-   ##
==============================================
  Coverage          45.63%   45.63%           
  Complexity          1046     1046           
==============================================
  Files                 57       57           
  Lines               9149     9149           
  Branches            1687     1687           
==============================================
  Hits                4175     4175           
  Misses              4424     4424           
  Partials             550      550           

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 9052a4f...600898e. Read the comment docs.

Copy link
Member

@carlwilson carlwilson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So you're right that #596 covers similar ground. I think that there's likely a few of these in the code. Nice fix though.

@carlwilson carlwilson merged commit b9cae8b into openpreserve:integration May 14, 2020
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.

Unexpected exception lava.lang.ClassCastException in PDF-hul 1.11 JOHVE 1.20.1
3 participants