16427 r=akhil.arora@sun.com fixed by Denis Sharypov <sdv@sparc.spb.su>

Check before dereferencing a NULL pointer.
This commit is contained in:
akhil.arora%sun.com 1999-10-15 01:43:24 +00:00
parent d82e325499
commit fb9ab8d4ae

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;
}