mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-27 15:55:16 +00:00
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:
parent
d82e325499
commit
fb9ab8d4ae
@ -430,7 +430,7 @@ JNIEXPORT jobject JNICALL Java_org_mozilla_dom_ElementImpl_setAttributeNode
|
||||
return NULL;
|
||||
}
|
||||
|
||||
ret->AddRef();
|
||||
if (ret) ret->AddRef();
|
||||
return jattr;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user