16427 r=akhil.arora@sun.com fixed by Denis Sharypov <sdv@sparc.spb.su>
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:
@@ -430,7 +430,7 @@ JNIEXPORT jobject JNICALL Java_org_mozilla_dom_ElementImpl_setAttributeNode
|
||||
return NULL;
|
||||
}
|
||||
|
||||
ret->AddRef();
|
||||
if (ret) ret->AddRef();
|
||||
return jattr;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user