mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:38:11 +00:00
LibPDF: Fix security-handler-related nullptr regression
This commit is contained in:
parent
b69488031b
commit
698fb3957a
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ void PDFViewerWidget::open_file(Core::File& file)
|
|||
|
||||
auto document = maybe_document.release_value();
|
||||
|
||||
if (auto sh = document->security_handler(); !sh->has_user_password()) {
|
||||
if (auto sh = document->security_handler(); sh && !sh->has_user_password()) {
|
||||
// FIXME: Prompt the user for a password
|
||||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue