mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +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: https://github.com/SerenityOS/serenity/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();
|
||||
|
||||
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…
Reference in a new issue