From 575affbf87163cab6ee004e37ab99500b8c8bb4c Mon Sep 17 00:00:00 2001 From: "blakeross%telocity.com" Date: Wed, 17 Jan 2001 20:01:11 +0000 Subject: [PATCH] Fix 59327: hwaara's patch to add an assertion. r=jag sr=blizzard git-svn-id: svn://10.0.0.236/trunk@85037 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/editor/base/nsHTMLEditRules.cpp | 1 + mozilla/editor/libeditor/html/nsHTMLEditRules.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/mozilla/editor/base/nsHTMLEditRules.cpp b/mozilla/editor/base/nsHTMLEditRules.cpp index 7e568fe9511..f84cd25c849 100644 --- a/mozilla/editor/base/nsHTMLEditRules.cpp +++ b/mozilla/editor/base/nsHTMLEditRules.cpp @@ -4983,6 +4983,7 @@ nsHTMLEditRules::FindNearSelectableNode(nsIDOMNode *aSelNode, nsresult nsHTMLEditRules::InDifferentTableElements(nsIDOMNode *aNode1, nsIDOMNode *aNode2, PRBool *aResult) { + NS_ASSERTION(aNode1 && aNode2 && aResult, "null args"); if (!aNode1 || !aNode2 || !aResult) return NS_ERROR_NULL_POINTER; nsCOMPtr tn1, tn2, node = aNode1, temp; diff --git a/mozilla/editor/libeditor/html/nsHTMLEditRules.cpp b/mozilla/editor/libeditor/html/nsHTMLEditRules.cpp index 7e568fe9511..f84cd25c849 100644 --- a/mozilla/editor/libeditor/html/nsHTMLEditRules.cpp +++ b/mozilla/editor/libeditor/html/nsHTMLEditRules.cpp @@ -4983,6 +4983,7 @@ nsHTMLEditRules::FindNearSelectableNode(nsIDOMNode *aSelNode, nsresult nsHTMLEditRules::InDifferentTableElements(nsIDOMNode *aNode1, nsIDOMNode *aNode2, PRBool *aResult) { + NS_ASSERTION(aNode1 && aNode2 && aResult, "null args"); if (!aNode1 || !aNode2 || !aResult) return NS_ERROR_NULL_POINTER; nsCOMPtr tn1, tn2, node = aNode1, temp;