From 5fc2eec4f2fc8111587e61a6b4a8e3b81f577d69 Mon Sep 17 00:00:00 2001 From: "rhp%netscape.com" Date: Mon, 26 Jul 1999 18:05:41 +0000 Subject: [PATCH] Fix for stopper bug #10504 --- editor/base/nsHTMLEditRules.cpp | 2 +- editor/libeditor/html/nsHTMLEditRules.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/base/nsHTMLEditRules.cpp b/editor/base/nsHTMLEditRules.cpp index 76009a6076e1..8a88c005c6a9 100644 --- a/editor/base/nsHTMLEditRules.cpp +++ b/editor/base/nsHTMLEditRules.cpp @@ -73,7 +73,7 @@ NS_IMETHODIMP nsHTMLEditRules::WillDoAction(nsIDOMSelection *aSelection, nsRulesInfo *aInfo, PRBool *aCancel) { - if (!aSelection || !aInfo || !aCancel) + if (!aInfo || !aCancel) return NS_ERROR_NULL_POINTER; *aCancel = PR_FALSE; diff --git a/editor/libeditor/html/nsHTMLEditRules.cpp b/editor/libeditor/html/nsHTMLEditRules.cpp index 76009a6076e1..8a88c005c6a9 100644 --- a/editor/libeditor/html/nsHTMLEditRules.cpp +++ b/editor/libeditor/html/nsHTMLEditRules.cpp @@ -73,7 +73,7 @@ NS_IMETHODIMP nsHTMLEditRules::WillDoAction(nsIDOMSelection *aSelection, nsRulesInfo *aInfo, PRBool *aCancel) { - if (!aSelection || !aInfo || !aCancel) + if (!aInfo || !aCancel) return NS_ERROR_NULL_POINTER; *aCancel = PR_FALSE;