Commit ec4483ad authored by Martin Koller's avatar Martin Koller
Browse files

avoid 0-pointer deref

BUG: 212586
parent 24e79c00
......@@ -4268,7 +4268,8 @@ void KonqMainWindow::showEvent(QShowEvent *event)
QString KonqExtendedBookmarkOwner::currentUrl() const
{
return m_pKonqMainWindow->currentView()->url().url();
const KonqView* view = m_pKonqMainWindow->currentView();
return view ? view->url().url() : QString();
}
QString KonqMainWindow::currentProfile() const
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment