* java/lang/natClass.cc (registerClosure): Make sure closures is
non NULL.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156257
138bc75d-0d04-0410-961f-
82ee72b054a4
+2010-01-26 Andrew Haley <aph@redhat.com>
+
+ * java/lang/natClass.cc (registerClosure): Make sure closures is
+ non NULL.
+
2010-01-19 Matthias Klose <doko@ubuntu.com>
* Regenerate .class files.
_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