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

panic on unwrap on a None value #66

Open
blankenshipz opened this issue Aug 9, 2023 · 5 comments
Open

panic on unwrap on a None value #66

blankenshipz opened this issue Aug 9, 2023 · 5 comments

Comments

@blankenshipz
Copy link

I'm getting a strange panic when reading an arbitrary PDF file

thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', /Users/me/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pdf-extract-0.6.5/src/lib.rs:955:37

I can't find any other issues that seem to be in this same area of the code; is the PDF malformed?

@jrmuizel
Copy link
Owner

Can you link to or attach the pdf?

@scotow
Copy link

scotow commented Sep 2, 2023

I'm getting the same issue but unfortunately I can't share the PDF that I'm using for privacy reason. @jrmuizel, I reached you over Discord.

@jrmuizel
Copy link
Owner

jrmuizel commented Sep 7, 2023

@scotow I've fixed your PDF in deb3aea

@scotow
Copy link

scotow commented Sep 7, 2023

Thanks. Seems to be working.
Do you plan to publish a new version to crates.io with this fix anytime soon?

@jrmuizel
Copy link
Owner

jrmuizel commented Sep 8, 2023

I published 0.7.1

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

No branches or pull requests

3 participants