mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 09:15:07 +00:00
LibWeb: Fix PageView::url() null-check
This commit is contained in:
parent
93ebd320ef
commit
7974279a5d
1 changed files with 2 additions and 2 deletions
|
@ -45,8 +45,8 @@
|
|||
#include <LibWeb/Dump.h>
|
||||
#include <LibWeb/Frame/EventHandler.h>
|
||||
#include <LibWeb/Frame/Frame.h>
|
||||
#include <LibWeb/Layout/LayoutDocument.h>
|
||||
#include <LibWeb/Layout/LayoutBreak.h>
|
||||
#include <LibWeb/Layout/LayoutDocument.h>
|
||||
#include <LibWeb/Layout/LayoutNode.h>
|
||||
#include <LibWeb/Layout/LayoutText.h>
|
||||
#include <LibWeb/Loader/ResourceLoader.h>
|
||||
|
@ -370,7 +370,7 @@ void PageView::keydown_event(GUI::KeyEvent& event)
|
|||
|
||||
URL PageView::url() const
|
||||
{
|
||||
if (page().main_frame().document())
|
||||
if (!page().main_frame().document())
|
||||
return {};
|
||||
return page().main_frame().document()->url();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue