--- kdelibs-3.5.6/khtml/khtml_part.cpp.kde#126812 2007-01-15 05:34:06.000000000 -0600
+++ kdelibs-3.5.6/khtml/khtml_part.cpp 2007-05-14 15:20:50.000000000 -0500
@@ -1843,7 +1843,7 @@
}
KIO::TransferJob *tjob = ::qt_cast(job);
if (tjob && tjob->isErrorPage()) {
- khtml::RenderPart *renderPart = d->m_frame->m_frame;
+ khtml::RenderPart *renderPart = d->m_frame ? d->m_frame->m_frame : 0L;
if (renderPart) {
HTMLObjectElementImpl* elt = static_cast(renderPart->element());
if (!elt)