Skip to content

Commit

Permalink
ROB: Guard against None-value in _get_outlines (#1060)
Browse files Browse the repository at this point in the history
See #1059
  • Loading branch information
MartinThoma authored Jul 9, 2022
1 parent 3a8199c commit 439c749
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PyPDF2/_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ def _get_outlines(
return outlines

# TABLE 8.3 Entries in the outline dictionary
if "/First" in lines:
if lines is not None and "/First" in lines:
node = cast(DictionaryObject, lines["/First"])
self._namedDests = self._get_named_destinations()

Expand Down

0 comments on commit 439c749

Please sign in to comment.