diff --git a/mozilla/widget/src/windows/nsWindow.cpp b/mozilla/widget/src/windows/nsWindow.cpp index c396678bc41..57ff8b8455e 100644 --- a/mozilla/widget/src/windows/nsWindow.cpp +++ b/mozilla/widget/src/windows/nsWindow.cpp @@ -6675,7 +6675,7 @@ nsWindow::IMEMouseHandling(PRUint32 aEventType, PRInt32 aAction, LPARAM lParam) HWND parentWnd = ::GetParent(mWnd); if (parentWnd) { nsWindow* parentWidget = GetNSWindowPtr(parentWnd); - if (parentWidget->mIMEIsComposing && nsWindow::uWM_MSIME_MOUSE) { + if (parentWidget && parentWidget->mIMEIsComposing && nsWindow::uWM_MSIME_MOUSE) { if (parentWidget->IMECompositionHitTest(aEventType, &ptPos)) if (parentWidget->HandleMouseActionOfIME(aAction, &ptPos)) return PR_TRUE;