зеркало из https://github.com/mozilla/pjs.git
Bug 336985 Misplaced null check of aEvent in nsEventStateManager::PreHandleEvent
r=bryner sr=bryner
This commit is contained in:
Родитель
7ef44dbd4b
Коммит
244bb432fd
|
@ -414,6 +414,10 @@ nsEventStateManager::PreHandleEvent(nsPresContext* aPresContext,
|
|||
{
|
||||
NS_ENSURE_ARG_POINTER(aStatus);
|
||||
NS_ENSURE_ARG(aPresContext);
|
||||
if (!aEvent) {
|
||||
NS_ERROR("aEvent is null. This should never happen.");
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
}
|
||||
|
||||
mCurrentTarget = aTargetFrame;
|
||||
mCurrentTargetContent = nsnull;
|
||||
|
@ -429,11 +433,6 @@ nsEventStateManager::PreHandleEvent(nsPresContext* aPresContext,
|
|||
|
||||
*aStatus = nsEventStatus_eIgnore;
|
||||
|
||||
if (!aEvent) {
|
||||
NS_ERROR("aEvent is null. This should never happen.");
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
}
|
||||
|
||||
switch (aEvent->message) {
|
||||
case NS_MOUSE_LEFT_BUTTON_DOWN:
|
||||
#ifndef XP_OS2
|
||||
|
|
Загрузка…
Ссылка в новой задаче