don't crash on nullptr pdfOptionsPage
ClosedPublic

Authored by sitter on Oct 16 2019, 12:50 PM.

Details

Summary

same as in fbeff5ae7c2b27577d829839879b0966b5a3859a there may not be
a pdfOptionsPage when using print preview.

this fixes an exciting crash on our windows build when trying to print
preview

Test Plan

can't easily build on windows but the traceback definitely falls over 0x0000 on that line, so given context I am confident this fixes the crash

Diff Detail

Repository
R223 Okular
Branch
Applications/19.08
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 17751
Build 17769: arc lint + arc unit
sitter created this revision.Oct 16 2019, 12:50 PM
Restricted Application added a project: Okular. · View Herald TranscriptOct 16 2019, 12:50 PM
Restricted Application added a subscriber: okular-devel. · View Herald Transcript
sitter requested review of this revision.Oct 16 2019, 12:50 PM
aacid accepted this revision.Oct 17 2019, 5:06 PM
This revision is now accepted and ready to land.Oct 17 2019, 5:06 PM
This revision was automatically updated to reflect the committed changes.