Check before dereferencing a NULL pointer.


git-svn-id: svn://10.0.0.236/trunk@50759 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
akhil.arora%sun.com
1999-10-15 01:43:24 +00:00
parent b2e2e2a6bc
commit 4e04c99aad

View File

@@ -430,7 +430,7 @@ JNIEXPORT jobject JNICALL Java_org_mozilla_dom_ElementImpl_setAttributeNode
return NULL;
}
ret->AddRef();
if (ret) ret->AddRef();
return jattr;
}