mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 01:29:17 +00:00
LibPDF: Fix security-handler-related nullptr regression
This commit is contained in:
parent
b69488031b
commit
698fb3957a
Notes:
sideshowbarker
2024-07-17 16:24:15 +09:00
Author: https://github.com/mattco98
Commit: 698fb3957a
Pull-request: https://github.com/SerenityOS/serenity/pull/13326
Reviewed-by: https://github.com/alimpfard
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();
|
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
|
// FIXME: Prompt the user for a password
|
||||||
VERIFY_NOT_REACHED();
|
VERIFY_NOT_REACHED();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue