mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 23:25:20 +00:00
LibPDF: Fix security-handler-related nullptr regression
This commit is contained in:
committed by
Andreas Kling
parent
b69488031b
commit
698fb3957a
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user