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:
@@ -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))
|
||||
{
|
||||
|
||||
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user