diff --git a/Userland/Applications/Browser/History.cpp b/Userland/Applications/Browser/History.cpp index 7732c6f5d7..bddd81267c 100644 --- a/Userland/Applications/Browser/History.cpp +++ b/Userland/Applications/Browser/History.cpp @@ -57,6 +57,8 @@ void History::clear() void History::update_title(String const& title) { + if (m_current == -1) + return; m_items[m_current].title = title; }