* Stop crashing on fast/events/frame-tab-focus.html the keyEvent can be 0.
authorlars <lars@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 24 Oct 2007 12:33:31 +0000 (12:33 +0000)
committerlars <lars@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 24 Oct 2007 12:33:31 +0000 (12:33 +0000)
Signed-off-by: Lars Knoll <lars@trolltech.com>
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26984 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKit/qt/ChangeLog
WebKit/qt/WebCoreSupport/EditorClientQt.cpp

index 0c75566e749cbace993ab3708036e17cff9324ee..b8e1ad5ccd9b951a688b2bf18a3bcf503915dad9 100644 (file)
@@ -1,3 +1,13 @@
+2007-10-24  Holger Hans Peter Freyther  <zecke@selfish.org>
+
+        Reviewed by Lars Knoll <lars@trolltech.com>.
+
+        * Stop crashing on fast/events/frame-tab-focus.html the keyEvent can be 0.
+        
+
+        * WebCoreSupport/EditorClientQt.cpp:
+        (WebCore::EditorClientQt::handleKeypress):
+
 2007-10-24  Lars Knoll  <lars@trolltech.com>
 
         Reviewed by Simon.
index a29c478f5f4f55d7c6a0f7a9b2a8f762d36d0da5..8f769c1fc818dda17c36de7f4cfd475efb4f5582 100644 (file)
@@ -328,7 +328,7 @@ void EditorClientQt::handleKeypress(KeyboardEvent* event)
         return;
 
     const PlatformKeyboardEvent* kevent = event->keyEvent();
-    if (kevent->isKeyUp())
+    if (!kevent || kevent->isKeyUp())
         return;
 
     Node* start = frame->selectionController()->start().node();