interpret-run.cc (invokevirtual_resolved): Nullcheck object on TOS.

* interpret-run.cc (invokevirtual_resolved): Nullcheck object on
        TOS.

From-SVN: r128298
This commit is contained in:
Andrew Haley 2007-09-09 14:55:45 +00:00 committed by Andrew Haley
parent 61ce048a27
commit f144591b54
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2007-09-09 Andrew Haley <aph@redhat.com>
* interpret-run.cc (invokevirtual_resolved): Nullcheck object on
TOS.
2007-09-06 Tom Tromey <tromey@redhat.com>
* testsuite/libjava.lang/StackTrace2.jar: Rebuilt.

View File

@ -563,6 +563,7 @@ details. */
}
else
{
NULLCHECK (sp[0].o);
jobject rcv = sp[0].o;
_Jv_VTable *table = *(_Jv_VTable**) rcv;
fun = (void (*)()) table->get_method (rmeth->method->index);