natClass.cc (registerClosure): Make sure closures is non NULL.
2010-01-26 Andrew Haley <aph@redhat.com> * java/lang/natClass.cc (registerClosure): Make sure closures is non NULL. From-SVN: r156257
This commit is contained in:
parent
d9a6fdb74e
commit
31660932a6
2 changed files with 11 additions and 3 deletions
|
@ -689,9 +689,12 @@ void
|
|||
_Jv_ClosureList::registerClosure (jclass klass, void *ptr)
|
||||
{
|
||||
_Jv_ClosureList **closures = klass->engine->get_closure_list (klass);
|
||||
this->ptr = ptr;
|
||||
this->next = *closures;
|
||||
*closures = this;
|
||||
if (closures)
|
||||
{
|
||||
this->ptr = ptr;
|
||||
this->next = *closures;
|
||||
*closures = this;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue