Reviewed by John
authorkocienda <kocienda@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 14 Jul 2004 23:35:17 +0000 (23:35 +0000)
committerkocienda <kocienda@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 14 Jul 2004 23:35:17 +0000 (23:35 +0000)
        * khtml/rendering/render_block.cpp:
        (khtml::RenderBlock::paintObject): Add null check on DOM node before
        asking if it is contentEditable.

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

WebCore/ChangeLog-2005-08-23
WebCore/khtml/rendering/render_block.cpp

index 9aa8f924c39c49ab7c7097104b784210c81e8971..2ef09198e00fed32de9656b36eca08243cfec2a4 100644 (file)
@@ -1,3 +1,11 @@
+2004-07-14  Ken Kocienda  <kocienda@apple.com>
+
+        Reviewed by John
+
+        * khtml/rendering/render_block.cpp:
+        (khtml::RenderBlock::paintObject): Add null check on DOM node before
+        asking if it is contentEditable.
+
 2004-07-14  David Hyatt  <hyatt@apple.com>
 
        Fix for 3595073, setting innerHTML on a <table> should work.
index b89ebf7224cbef37839ccf791298e9efa6607904..0cd07a52e862af9969a17c1e731484e3a2fb234a 100644 (file)
@@ -1312,12 +1312,11 @@ void RenderBlock::paintObject(PaintInfo& i, int _tx, int _ty)
         const Selection &s = document()->part()->selection();
         NodeImpl *caretNode = s.start().node();
         RenderObject *renderer = caretNode ? caretNode->renderer() : 0;
-        if (renderer && renderer->containingBlock() == this && caretNode->isContentEditable()) {
+        if (renderer && renderer->containingBlock() == this && caretNode && caretNode->isContentEditable()) {
             document()->part()->paintCaret(i.p, i.r);
             document()->part()->paintDragCaret(i.p, i.r);
         }
     }
-    
 
 #ifdef BOX_DEBUG
     if ( style() && style()->visibility() == VISIBLE ) {