Skip to content

ROB: Deal with invalid Destinations#1028

Merged
MartinThoma merged 1 commit intomainfrom
fix997
Jun 26, 2022
Merged

ROB: Deal with invalid Destinations#1028
MartinThoma merged 1 commit intomainfrom
fix997

Conversation

@MartinThoma
Copy link
Copy Markdown
Member

Issue: An
AttributeError: 'NoneType' object has no attribute 'get_object'
was raised when trying to write a page that was merged.

Fix: Guard IndirectObject.get_object access

Closes #997

Issue: An
        AttributeError: 'NoneType' object has no attribute 'get_object'
    was raised when trying to write a page that was merged.

Fix: Guard IndirectObject.get_object access

Closes #997
@codecov
Copy link
Copy Markdown

codecov bot commented Jun 26, 2022

Codecov Report

Merging #1028 (819370b) into main (3c750c1) will increase coverage by 0.14%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1028      +/-   ##
==========================================
+ Coverage   89.36%   89.50%   +0.14%     
==========================================
  Files          24       24              
  Lines        4427     4432       +5     
  Branches      917      919       +2     
==========================================
+ Hits         3956     3967      +11     
+ Misses        321      318       -3     
+ Partials      150      147       -3     
Impacted Files Coverage Δ
PyPDF2/_merger.py 88.80% <100.00%> (+1.21%) ⬆️
PyPDF2/generic.py 91.28% <100.00%> (+0.02%) ⬆️
PyPDF2/_reader.py 92.13% <0.00%> (+0.43%) ⬆️

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 3c750c1...819370b. Read the comment docs.

@MartinThoma MartinThoma merged commit 595739f into main Jun 26, 2022
@MartinThoma MartinThoma deleted the fix997 branch June 26, 2022 07:29
MartinThoma added a commit that referenced this pull request Jun 26, 2022
New Features (ENH):
-  Support R6 decrypting (#1015)
-  Add PdfReader.pdf_header (#1013)

Performance Improvements (PI):
-  Remove ord_ calls (#1014)

Bug Fixes (BUG):
-  Fix missing page for bookmark (#1016)

Robustness (ROB):
-  Deal with invalid Destinations (#1028)

Documentation (DOC):
-  get_form_text_fields does not extract dropdown data (#1029)
-  Adjust PdfWriter.add_uri docstring
-  Mention crypto extra_requires for installation (#1017)

Developer Experience (DEV):
-  Use /n line endings everywhere (#1027)
-  Adjust string formatting to be able to use mutmut (#1020)
-  Update Bug report template

Full Changelog: 2.3.1...2.4.0
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.

PdfReadError: Could not find object

1 participant