зеркало из https://github.com/mozilla/pjs.git
Add some small NULL checks.
This commit is contained in:
Родитель
23ab6fe1c1
Коммит
b214f946d9
|
@ -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))
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче