Reviewed by Don.
authordarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 5 Mar 2005 23:20:51 +0000 (23:20 +0000)
committerdarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 5 Mar 2005 23:20:51 +0000 (23:20 +0000)
        - fixed <rdar://problem/4038478> Crash in renderer viewing RSS feed at feed://wvs.topleftpixel.com/index.rdf

        * khtml/xml/dom_docimpl.cpp: (widgetForNode): Check for nil before going from node to renderer.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8797 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog-2005-08-23
WebCore/khtml/xml/dom_docimpl.cpp

index e204f78b68935ce228093337b67b12d768192b84..34b03b379b8686938a229859ffbda2f66d25be1f 100644 (file)
@@ -1,3 +1,11 @@
+2005-03-05  Darin Adler  <darin@apple.com>
+
+        Reviewed by Don.
+
+        - fixed <rdar://problem/4038478> Crash in renderer viewing RSS feed at feed://wvs.topleftpixel.com/index.rdf
+
+        * khtml/xml/dom_docimpl.cpp: (widgetForNode): Check for nil before going from node to renderer.
+
 2005-03-05  Darin Adler  <darin@apple.com>
 
         Reviewed by Richard.
index 09beac00a98ad7f10f30fca89ac9603696380581..4b91ff33388e6ebdbe576d8f49d340ec5a2de2d2 100644 (file)
@@ -2449,6 +2449,8 @@ void DocumentImpl::setDashboardRegions (const QValueList<DashboardRegionValue>&
 
 static QWidget *widgetForNode(NodeImpl *focusNode)
 {
+    if (!focusNode)
+        return 0;
     RenderObject *renderer = focusNode->renderer();
     if (!renderer || !renderer->isWidget())
         return 0;