SVN commit 799153 by porten: Don't crash when calling with missing doc renderer. Could possibly happen during document teardown but I got it with a form element inserted into an XHTML document created with createDocument(). M +1 -1 dom2_eventsimpl.cpp --- branches/KDE/4.0/kdelibs/khtml/xml/dom2_eventsimpl.cpp #799152:799153 @@ -423,7 +423,7 @@ m_layerY = m_pageY; DocumentImpl* doc = view() ? view()->document() : 0; - if (doc) { + if (doc && doc->renderer()) { khtml::RenderObject::NodeInfo renderInfo(true, false); doc->renderer()->layer()->nodeAtPoint(renderInfo, m_pageX, m_pageY);