Reviewed by Beth.
authorggaren <ggaren@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 31 Oct 2006 01:21:49 +0000 (01:21 +0000)
committerggaren <ggaren@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 31 Oct 2006 01:21:49 +0000 (01:21 +0000)
        Fixed nil-deref crash that I saw while using TOT (not sure how to repro,
        but the debugger confirmed the cause).

        * WebView/WebFrame.mm:
        (core): Added check for NULL bridge.

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

WebKit/ChangeLog
WebKit/WebView/WebFrame.mm

index 772e63fed260b0cb523f0db2cccb7531bdd5b7b4..1d4c1862c7c78478bde9219bbff71c11a07bf855 100644 (file)
@@ -1,3 +1,13 @@
+2006-10-30  Geoffrey Garen  <ggaren@apple.com>
+
+        Reviewed by Beth.
+        
+        Fixed nil-deref crash that I saw while using TOT (not sure how to repro,
+        but the debugger confirmed the cause).
+
+        * WebView/WebFrame.mm:
+        (core): Added check for NULL bridge.
+
 2006-10-30  Geoffrey Garen  <ggaren@apple.com>
 
         Reviewed by Darin.
index 9a5fae1e1aff4107ae9baf96b3967d2ffbff53e1..0c24b50f6ccfb5a5dc9e6e5886196f067edaebf9 100644 (file)
@@ -212,6 +212,9 @@ FrameMac* core(WebFrame *frame)
 {
     if (!frame)
         return 0;
+    
+    if (!frame->_private->bridge)
+        return 0;
 
     return frame->_private->bridge->m_frame;
 }