Add some small NULL checks.

git-svn-id: svn://10.0.0.236/trunk@30472 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rjc%netscape.com
1999-05-06 00:38:54 +00:00
parent d0f3fb2040
commit 5cdb033229
2 changed files with 4 additions and 4 deletions

View File

@@ -684,9 +684,9 @@ getNodeValue(nsIContent *node1, nsIRDFResource *sortProperty, sortPtr sortInfo,
nsresult rv;
cellVal1 = "";
if (NS_SUCCEEDED(rv = node1->QueryInterface(kIDomXulElementIID, (void **)&dom1)))
if (NS_SUCCEEDED(rv = node1->QueryInterface(kIDomXulElementIID, (void **)&dom1)) && (nsnull != dom1))
{
if (NS_SUCCEEDED(rv = dom1->GetResource(&res1)))
if (NS_SUCCEEDED(rv = dom1->GetResource(&res1)) && (nsnull != res1))
{
if ((sortInfo->naturalOrderSort == PR_FALSE) && (sortInfo->sortProperty))
{

View File

@@ -684,9 +684,9 @@ getNodeValue(nsIContent *node1, nsIRDFResource *sortProperty, sortPtr sortInfo,
nsresult rv;
cellVal1 = "";
if (NS_SUCCEEDED(rv = node1->QueryInterface(kIDomXulElementIID, (void **)&dom1)))
if (NS_SUCCEEDED(rv = node1->QueryInterface(kIDomXulElementIID, (void **)&dom1)) && (nsnull != dom1))
{
if (NS_SUCCEEDED(rv = dom1->GetResource(&res1)))
if (NS_SUCCEEDED(rv = dom1->GetResource(&res1)) && (nsnull != res1))
{
if ((sortInfo->naturalOrderSort == PR_FALSE) && (sortInfo->sortProperty))
{