diff --git a/mozilla/editor/base/nsHTMLEditRules.cpp b/mozilla/editor/base/nsHTMLEditRules.cpp
index 35fd0e8f04f..77dc5190faf 100644
--- a/mozilla/editor/base/nsHTMLEditRules.cpp
+++ b/mozilla/editor/base/nsHTMLEditRules.cpp
@@ -4971,7 +4971,7 @@ nsHTMLEditRules::FindNearSelectableNode(nsIDOMNode *aSelNode,
nsresult
nsHTMLEditRules::InDifferentTableElements(nsIDOMNode *aNode1, nsIDOMNode *aNode2, PRBool *aResult)
{
- if (!aNode1 || !aNode2 || !aResult) NS_ERROR_NULL_POINTER;
+ 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 35fd0e8f04f..77dc5190faf 100644
--- a/mozilla/editor/libeditor/html/nsHTMLEditRules.cpp
+++ b/mozilla/editor/libeditor/html/nsHTMLEditRules.cpp
@@ -4971,7 +4971,7 @@ nsHTMLEditRules::FindNearSelectableNode(nsIDOMNode *aSelNode,
nsresult
nsHTMLEditRules::InDifferentTableElements(nsIDOMNode *aNode1, nsIDOMNode *aNode2, PRBool *aResult)
{
- if (!aNode1 || !aNode2 || !aResult) NS_ERROR_NULL_POINTER;
+ if (!aNode1 || !aNode2 || !aResult) return NS_ERROR_NULL_POINTER;
nsCOMPtr tn1, tn2, node = aNode1, temp;