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;