Commit f144591b by Andrew Haley Committed by Andrew Haley

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

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

From-SVN: r128298
parent 61ce048a
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> 2007-09-06 Tom Tromey <tromey@redhat.com>
* testsuite/libjava.lang/StackTrace2.jar: Rebuilt. * testsuite/libjava.lang/StackTrace2.jar: Rebuilt.
......
...@@ -563,6 +563,7 @@ details. */ ...@@ -563,6 +563,7 @@ details. */
} }
else else
{ {
NULLCHECK (sp[0].o);
jobject rcv = sp[0].o; jobject rcv = sp[0].o;
_Jv_VTable *table = *(_Jv_VTable**) rcv; _Jv_VTable *table = *(_Jv_VTable**) rcv;
fun = (void (*)()) table->get_method (rmeth->method->index); fun = (void (*)()) table->get_method (rmeth->method->index);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment