From bda88386984c3b405049bffc5d79918b2b63f7de Mon Sep 17 00:00:00 2001 From: Rikke Simonsen Date: Mon, 17 Feb 2014 10:21:27 +0100 Subject: [PATCH] Fix for crash bug caused by Iframe NULL reference https://github.com/ariya/phantomjs/issues/10947 https://github.com/ariya/phantomjs/issues/11103 https://github.com/ariya/phantomjs/pull/11984 --- src/webpage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webpage.cpp b/src/webpage.cpp index 59e10168e..ca19a5ea2 100644 --- a/src/webpage.cpp +++ b/src/webpage.cpp @@ -1543,7 +1543,7 @@ QStringList WebPage::childFramesName() const //< deprecated void WebPage::changeCurrentFrame(QWebFrame * const frame) { if (frame != m_currentFrame) { - qDebug() << "WebPage - changeCurrentFrame" << "from" << m_currentFrame->frameName() << "to" << frame->frameName(); + qDebug() << "WebPage - changeCurrentFrame" << "from" << (m_currentFrame == NULL ? "Undefined" : m_currentFrame->frameName()) << "to" << frame->frameName(); m_currentFrame = frame; } }